Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I make it so It Teleports Then The Intermission Starts And Loops?

Hello, I need to know how to Reverse This Script & make it so It Teleports Then The Intermission Starts And Loops

local intermissionTime = 5
for i = intermissionTime,0,-1 do
    script.Parent.Text = tostring(i)
    wait(1)
end
for _,v in next, game:GetService("Players"):GetPlayers() do
    v.Character:MoveTo( Vector3.new(-4752.272, 57.881, 9762.339))
end

thank you..

1 comment

0

If you don't know how to reverse it, then you didn't write it. We're here to help you learn how to code, not here to help make some code you need to work work.

1 answer

Never use that method you did after the "for" function. There is a much more simple way Here is a fixed script:

local intermissionTime = 5
for i = intermissionTime,0,-1 do
    script.Parent.Text = tostring(i)
    wait(1)
end
local plrs = game.Players:GetChildren()
for i = 1, #plrs do
    plrs[i].Character.HumanoidRootPart.CFrame = CFrame.new(-4752.272, 57.881, 9762.339)
end

1 comment

0

"for" is a loop, not a function - and there's nothing wrong with the MoveTo function.

This discussion is preserved as it was. New answers, comments, and votes are closed.