After 2 players join I need a round to start. Rounds last 180 seconds. How would I teleport players into the map?
This would teleport all players to a specific location:
01 | location = CFrame.new( 0 , 0 , 0 ) -- the position to teleport players to |
02 | players = game:GetService( "Players" ) |
03 |
04 | for 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 |
15 | end |
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>?