Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- repeat wait() until game:IsLoaded()
- wait(4)
- for i,v in pairs(workspace.treasure:GetChildren()) do
- if v.Name == "coin" then
- wait(0.2)
- fireclickdetector(v.ClickDetector)
- end
- end
- local function hop()
- local x = {}
- for _, v in ipairs(game:GetService("HttpService"):JSONDecode(game:HttpGetAsync("https://games.roblox.com/v1/games/" .. game.PlaceId .. "/servers/Public?sortOrder=Asc&limit=100")).data) do
- if type(v) == "table" and v.maxPlayers > v.playing and v.id ~= game.JobId then
- x[#x + 1] = v.id
- end
- end
- if #x > 0 then
- game:GetService("TeleportService"):TeleportToPlaceInstance(game.PlaceId, x[math.random(1, #x)])
- end
- end
- hop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement