Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tbs = {}
- while task.wait() do
- pcall(function()
- local cc = nil
- repeat
- for __,qtm in pairs(workspace:GetChildren()) do
- for ii,vv in pairs(qtm:GetChildren()) do
- if vv.Name == "CoinContainer" and vv:IsA("Model") then
- cc = vv
- end
- end
- end
- task.wait()
- until cc ~= nil
- local maxdistance = 250
- local ptt
- for i,v in pairs(cc:GetChildren()) do
- local distance = (game.Players.LocalPlayer.Character.HumanoidRootPart.Position - v.Position).Magnitude
- if distance < maxdistance and distance > .8 then
- maxdistance = distance
- ptt = v
- end
- end
- if ptt ~= nil then
- for i,v in pairs(tbs) do
- v:Cancel()
- end
- local distance = (game.Players.LocalPlayer.Character.HumanoidRootPart.Position - ptt.Position).Magnitude
- local tw = game:GetService("TweenService"):Create(game.Players.LocalPlayer.Character.HumanoidRootPart,TweenInfo.new((distance/50), Enum.EasingStyle.Linear, Enum.EasingDirection.In),{CFrame = ptt.CFrame})
- tw:Play()
- table.insert(tbs,tw)
- task.wait((distance/50))
- end
- end)
- end
- task.spawn(function()
- local minutes = 3
- task.wait(60 * minutes)
- 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()
- end)
- game.Players.LocalPlayer.Character:FindFirstChild("Humanoid").Died:Connect(function()
- 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()
- end)
- queueteleport = (syn and syn.queue_on_teleport) or queue_on_teleport or (fluxus and fluxus.queue_on_teleport)
- game.Players.LocalPlayer.OnTeleport:Connect(function()
- queueteleport("loadstring(game:HttpGet(\'https://pastebin.com/raw/yTU6hCRT\',true))()")
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement