Advertisement
SenseiRoblox

ro pog script

Mar 27th, 2021
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. repeat wait() until game:IsLoaded()
  2. wait(4)
  3.  
  4. for i,v in pairs(workspace.treasure:GetChildren()) do
  5. if v.Name == "coin" then
  6. wait(0.2)
  7. fireclickdetector(v.ClickDetector)
  8. end
  9. end
  10.  
  11. local function hop()
  12. local x = {}
  13. 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
  14. if type(v) == "table" and v.maxPlayers > v.playing and v.id ~= game.JobId then
  15. x[#x + 1] = v.id
  16. end
  17. end
  18. if #x > 0 then
  19. game:GetService("TeleportService"):TeleportToPlaceInstance(game.PlaceId, x[math.random(1, #x)])
  20. end
  21. end
  22.  
  23. hop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement