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

How would i make a part that would teleport them to every round (60 secs)?

Asked by 10 years ago

How would I do this? ive tried lots of scripts but it dosent work can anyone help me?

0
Show us some examples of what you have tried. We can help you fix your mistakes. SanityMan 239 — 10y

1 answer

Log in to vote
1
Answered by
Perci1 4988 Trusted Moderation Voter Community Moderator
10 years ago

To teleport someone, you change the CFrame of their Torso or use the MoveTo() method on the character model itself. I'll use MoveTo().

To get ALL the players, loop through them with a for loop.

To do this forever, use a while loop.

while true do
    wait(60)
    for i,v in pairs(game.Players:GetPlayers()) do
        v.Character:MoveTo(game.Workspace.Part.Position)
    end
end
0
Localscript or just script? digitalzer3 123 — 10y
0
Server script. Shouldn't you have figured that out...? Perci1 4988 — 10y
0
Also: I made a typo It's GetPlayers(), not GetPlayer(). I fixed it now. Perci1 4988 — 10y
Ad

Answer this question