Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

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

Asked by 7 years ago

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..

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. Goulstem 8144 — 7y

Closed as Not Constructive by Goulstem

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
-1
Answered by 7 years ago

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
0
"for" is a loop, not a function - and there's nothing wrong with the `MoveTo` function. Goulstem 8144 — 7y
Ad