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

How to teleport players into a Round Simulation?

Asked by 10 years ago

After 2 players join I need a round to start. Rounds last 180 seconds. How would I teleport players into the map?

2 answers

Log in to vote
3
Answered by
jav2612 180
10 years ago

This would teleport all players to a specific location:

location = CFrame.new(0, 0, 0) -- the position to teleport players to
players = game:GetService("Players")

for i, v in pairs(players:GetChildren()) do
    if v.Character() ~= nil then
        char = v.Character
        if char:FindFirstChild("Torso") ~= nil then
            v.Torso.Anchored = true
            wait()
            v.Torso.CFrame = location
            wait()
            v.Torso.Anchored = false
        end
    end
end
Ad
Log in to vote
0
Answered by 10 years ago

What do you mean by 0,0,0 could I just add a small invisible brick and players would randomly be teleport to it. What is the script for that>?

Answer this question