Teleport script
if game.Workspace.Bool.Value == true then local g = {game.Players:GetChildren()} for i = 1, #g do g[i].Character:Moveto(Vector3.new(0,0,0)) end end
GUI script
time = 20 if game.Players.NumPlayers >= 1 then script.Parent.Text = "Pick your team before times up" for i = 1, 20 do wait(1) time = time - 1 script.Parent.Text = "Round begins in: "..tostring(time).."" end script.Parent.Text = "Let the game begin" game.Workspace.Bool.Value = true end
I have this countdown GUI and after it hits 0, it sets a BoolValue to true, and I want it to teleport all the people in one area to a certain part of the map and the rest of the people in a different area to a different part of the map
if game.Workspace.Bool.Value == true then local g = {game.Players:GetChildren()} for i = 1, #g do g[i].Character:Moveto(Vector3.new(0,0,0)) end end