-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfirstgame.lua
More file actions
49 lines (41 loc) · 1.27 KB
/
firstgame.lua
File metadata and controls
49 lines (41 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local HttpService = game:GetService("HttpService")
local folderPath = "gamefolder"
local fileName = player.Name .. "_first.json"
local filePath = folderPath .. "/" .. fileName
if not isfolder(folderPath) then
makefolder(folderPath)
end
function FirstGame()
if isfile(filePath) then return end
for _, code in ipairs(getgenv().Config.Code or {}) do
game:GetService("ReplicatedStorage").Remotes.GetFunction:InvokeServer({
Type = "Code",
Mode = "Redeem",
Code = code
})
task.wait(0.1)
end
local summonArgs = {
{
Type = "Gacha",
Index = "StandardSummon",
Auto = {
T3 = false, S4 = false, T4 = false, T5 = false,
N3 = false, N5 = false, N4 = false, S3 = false, S5 = false
},
Mode = "Purchase",
Bundle = true
}
}
for i = 1, (getgenv().Config.Summon or 0) do
game:GetService("ReplicatedStorage").Remotes.GetFunction:InvokeServer(unpack(summonArgs))
task.wait(0.2)
end
writefile(filePath, HttpService:JSONEncode({
name = player.Name,
timestamp = os.time()
}))
end
FirstGame()