I want to make a teleportation script but the problem is it teleports me to the first part successfully, but then when I have it set to teleport to the next part after the game is over it just teleports me over then first part and I fall back down.
Here is the script:
wait(41)
function tp()
local players = game.Players:GetPlayers()
for i = 1,#players do
players[i].Character.HumanoidRootPart.CFrame = game.Workspace.Part.CFrame + Vector3.new(3.87, 0.5, 22.92)
end end
do
tp()
wait(180)
local players = game.Players:GetPlayers()
for i = 1,#players do
players[i].Character.HumanoidRootPart.CFrame = game.Workspace.Part2.CFrame + Vector3.new(-113.222, 26.001, -100.483)
end end
I have figured it out through their discord! QUESTION CLOSED.