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 9 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 — 9y

1 answer

Log in to vote
1
Answered by
Perci1 4988 Trusted Moderation Voter Community Moderator
9 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 — 9y
0
Server script. Shouldn't you have figured that out...? Perci1 4988 — 9y
0
Also: I made a typo It's GetPlayers(), not GetPlayer(). I fixed it now. Perci1 4988 — 9y
Ad

Answer this question