I want all players to teleport to 2 random teams. Where should I begin in this script? If so, an example would be helpful for me.
local GameTime = 10
local text = script.Text
while true do
wait(5)
text.Value = "Intermission..."
print("Intermission...")
wait(1)
local RandomNumber = math.random(1, 1)
local Map = game.ServerStorage["Map".. RandomNumber]
Map:Clone().Parent = workspace.MapFolder
ftime = GameTime
local SpawnCount = Map.SpawnCount
wait(5)
for _, v in pairs(game.Players:GetChildren())do
Player = Instance.new("StringValue",workspace.Players)
Player.Name = v.Name
randomN = math.random(1, SpawnCount.Value)
v.Character.Torso.CFrame = CFrame.new(Map["Spawn"..randomN].Position+Vector3.new(0,3,0))
end

3 comments
Thank you! I'll look into the script and let you know if it's working.
I'm getting an error on line 05. Workspace.Main Script:32: bad argument #3 to 'Team' (Object expected, got string)
Nevermind, I got it.