Advertisement
YANIS_EXPLOITS

Roblox advertise

Aug 28th, 2023
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.11 KB | None | 0 0
  1. local TimesToRepeatBeforeTeleport = 7
  2.  
  3. local msg = "Sub to 9cdx"
  4. wait(12)
  5. e=0
  6. repeat
  7.  
  8.  
  9.  
  10.  
  11. wait(2.1)
  12. e=e+1
  13. game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer(msg, "All")
  14. game.Players.LocalPlayer.Character.Humanoid.Jump = true
  15. local randomPlayer = game.Players:GetPlayers()
  16.  
  17.  
  18. [math.random(1,#game.Players:GetPlayers())]
  19. print(e)
  20. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(randomPlayer.Character.Head.Position.X, randomPlayer.Character.Head.Position.Y, randomPlayer.Character.Head.Position.Z))
  21. until e==TimesToRepeatBeforeTeleport
  22.  
  23. while e==TimesToRepeatBeforeTeleport do
  24.  
  25. local PlaceID = game.PlaceId
  26. local AllIDs = {}
  27. local foundAnything = ""
  28. local actualHour = os.date("!*t").hour
  29. local Deleted = false
  30. local File = pcall(function()
  31. AllIDs = game:GetService('HttpService'):JSONDecode(readfile("NotSameServers.json"))
  32. end)
  33. if not File then
  34. table.insert(AllIDs, actualHour)
  35. writefile("NotSameServers.json", game:GetService('HttpService'):JSONEncode(AllIDs))
  36. end
  37. function TPReturner()
  38. local Site;
  39. if foundAnything == "" then
  40. Site = game.HttpService:JSONDecode(game:HttpGet('https://games.roblox.com/v1/games/' .. PlaceID .. '/servers/Public?sortOrder=Asc&limit=100'))
  41. else
  42. Site = game.HttpService:JSONDecode(game:HttpGet('https://games.roblox.com/v1/games/' .. PlaceID .. '/servers/Public?sortOrder=Asc&limit=100&cursor=' .. foundAnything))
  43. end
  44. local ID = ""
  45. if Site.nextPageCursor and Site.nextPageCursor ~= "null" and Site.nextPageCursor ~= nil then
  46. foundAnything = Site.nextPageCursor
  47. end
  48. local num = 0;
  49. for i,v in pairs(Site.data) do
  50. local Possible = true
  51. ID = tostring(v.id)
  52. if tonumber(v.maxPlayers) > tonumber(v.playing) then
  53. for _,Existing in pairs(AllIDs) do
  54. if num ~= 0 then
  55. if ID == tostring(Existing) then
  56. Possible = false
  57. end
  58. else
  59. if tonumber(actualHour) ~= tonumber(Existing) then
  60. local delFile = pcall(function()
  61. delfile("NotSameServers.json")
  62. AllIDs = {}
  63. table.insert(AllIDs, actualHour)
  64. end)
  65. end
  66. end
  67. num = num + 1
  68. end
  69. if Possible == true then
  70. table.insert(AllIDs, ID)
  71. wait()
  72. pcall(function()
  73. writefile("NotSameServers.json", game:GetService('HttpService'):JSONEncode(AllIDs))
  74. wait()
  75. game:GetService("TeleportService"):TeleportToPlaceInstance(PlaceID, ID, game.Players.LocalPlayer)
  76. end)
  77. wait(4)
  78. end
  79. end
  80. end
  81. end
  82.  
  83. function Teleport()
  84. while wait() do
  85. pcall(function()
  86. TPReturner()
  87. if foundAnything ~= "" then
  88. TPReturner()
  89. end
  90. end)
  91. end
  92. end
  93.  
  94.  
  95. Teleport()
  96. wait(e9e)
  97. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement