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 11 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
11 years ago

This would teleport all players to a specific location:

01location = CFrame.new(0, 0, 0) -- the position to teleport players to
02players = game:GetService("Players")
03 
04for i, v in pairs(players:GetChildren()) do
05    if v.Character() ~= nil then
06        char = v.Character
07        if char:FindFirstChild("Torso") ~= nil then
08            v.Torso.Anchored = true
09            wait()
10            v.Torso.CFrame = location
11            wait()
12            v.Torso.Anchored = false
13        end
14    end
15end
Ad
Log in to vote
0
Answered by 11 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