Advertisement
xanyy

yuhhhhhhhhhh

Feb 18th, 2025 (edited)
12
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.89 KB | None | 0 0
  1. local tbs = {}
  2. while task.wait() do
  3. pcall(function()
  4. local cc = nil
  5. repeat
  6. for __,qtm in pairs(workspace:GetChildren()) do
  7. for ii,vv in pairs(qtm:GetChildren()) do
  8. if vv.Name == "CoinContainer" and vv:IsA("Model") then
  9. cc = vv
  10. end
  11. end
  12. end
  13. task.wait()
  14. until cc ~= nil
  15. local maxdistance = 250
  16. local ptt
  17. for i,v in pairs(cc:GetChildren()) do
  18. local distance = (game.Players.LocalPlayer.Character.HumanoidRootPart.Position - v.Position).Magnitude
  19.  
  20. if distance < maxdistance and distance > .8 then
  21. maxdistance = distance
  22. ptt = v
  23. end
  24. end
  25. if ptt ~= nil then
  26. for i,v in pairs(tbs) do
  27. v:Cancel()
  28. end
  29. local distance = (game.Players.LocalPlayer.Character.HumanoidRootPart.Position - ptt.Position).Magnitude
  30. local tw = game:GetService("TweenService"):Create(game.Players.LocalPlayer.Character.HumanoidRootPart,TweenInfo.new((distance/50), Enum.EasingStyle.Linear, Enum.EasingDirection.In),{CFrame = ptt.CFrame})
  31. tw:Play()
  32. table.insert(tbs,tw)
  33. task.wait((distance/50))
  34. end
  35. end)
  36. end
  37. task.spawn(function()
  38. local minutes = 3
  39. task.wait(60 * minutes)
  40. local PlaceID = game.PlaceId local AllIDs = {}local foundAnything = ""local actualHour = os.date("!*t").hour local Deleted = false local File = pcall(function()AllIDs = game:GetService('HttpService'):JSONDecode(readfile("NotSameServers.json"))end)if not File then table.insert(AllIDs, actualHour)writefile("NotSameServers.json", game:GetService('HttpService'):JSONEncode(AllIDs))end function TPReturner()local Site;if foundAnything == "" then Site = game.HttpService:JSONDecode(game:HttpGet('https://games.roblox.com/v1/games/' .. PlaceID .. '/servers/Public?sortOrder=Asc&limit=100')) else Site = game.HttpService:JSONDecode(game:HttpGet('https://games.roblox.com/v1/games/' .. PlaceID .. '/servers/Public?sortOrder=Asc&limit=100&cursor=' .. foundAnything))end local ID = ""if Site.nextPageCursor and Site.nextPageCursor ~= "null" and Site.nextPageCursor ~= nil then foundAnything = Site.nextPageCursor end local num = 0;for i,v in pairs(Site.data) do local Possible = true ID = tostring(v.id)if tonumber(v.maxPlayers) > tonumber(v.playing) then for _,Existing in pairs(AllIDs) do if num ~= 0 then if ID == tostring(Existing) then Possible = false end else if tonumber(actualHour) ~= tonumber(Existing) then local delFile = pcall(function()delfile("NotSameServers.json")AllIDs = {}table.insert(AllIDs, actualHour)end)end end num = num + 1 end if Possible == true then table.insert(AllIDs, ID)wait()pcall(function()writefile("NotSameServers.json", game:GetService('HttpService'):JSONEncode(AllIDs))wait()game:GetService("TeleportService"):TeleportToPlaceInstance(PlaceID, ID, game.Players.LocalPlayer)end)wait(4)end end end end function Teleport()while wait() do pcall(function()TPReturner()if foundAnything ~= "" then TPReturner()end end)end end Teleport()
  41. end)
  42. game.Players.LocalPlayer.Character:FindFirstChild("Humanoid").Died:Connect(function()
  43. local PlaceID = game.PlaceId local AllIDs = {}local foundAnything = ""local actualHour = os.date("!*t").hour local Deleted = false local File = pcall(function()AllIDs = game:GetService('HttpService'):JSONDecode(readfile("NotSameServers.json"))end)if not File then table.insert(AllIDs, actualHour)writefile("NotSameServers.json", game:GetService('HttpService'):JSONEncode(AllIDs))end function TPReturner()local Site;if foundAnything == "" then Site = game.HttpService:JSONDecode(game:HttpGet('https://games.roblox.com/v1/games/' .. PlaceID .. '/servers/Public?sortOrder=Asc&limit=100')) else Site = game.HttpService:JSONDecode(game:HttpGet('https://games.roblox.com/v1/games/' .. PlaceID .. '/servers/Public?sortOrder=Asc&limit=100&cursor=' .. foundAnything))end local ID = ""if Site.nextPageCursor and Site.nextPageCursor ~= "null" and Site.nextPageCursor ~= nil then foundAnything = Site.nextPageCursor end local num = 0;for i,v in pairs(Site.data) do local Possible = true ID = tostring(v.id)if tonumber(v.maxPlayers) > tonumber(v.playing) then for _,Existing in pairs(AllIDs) do if num ~= 0 then if ID == tostring(Existing) then Possible = false end else if tonumber(actualHour) ~= tonumber(Existing) then local delFile = pcall(function()delfile("NotSameServers.json")AllIDs = {}table.insert(AllIDs, actualHour)end)end end num = num + 1 end if Possible == true then table.insert(AllIDs, ID)wait()pcall(function()writefile("NotSameServers.json", game:GetService('HttpService'):JSONEncode(AllIDs))wait()game:GetService("TeleportService"):TeleportToPlaceInstance(PlaceID, ID, game.Players.LocalPlayer)end)wait(4)end end end end function Teleport()while wait() do pcall(function()TPReturner()if foundAnything ~= "" then TPReturner()end end)end end Teleport()
  44. end)
  45. queueteleport = (syn and syn.queue_on_teleport) or queue_on_teleport or (fluxus and fluxus.queue_on_teleport)
  46. game.Players.LocalPlayer.OnTeleport:Connect(function()
  47. queueteleport("loadstring(game:HttpGet(\'https://pastebin.com/raw/yTU6hCRT\',true))()")
  48. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement