Hi I was making a script where after the round everyone gets teleported to a random spawn. But with my script all it does it when the round is over they die can you help?
local spawns = {workspace.Part1.Position,workspace.Part2.Position,workspace.Part3.Position}
for i, player in ipairs(game.Players:GetChildren()) do
if player.Character and player.Character:FindFirstChild("Torso") then
player.Character.Torso.CFrame = CFrame.new(spawns[i])

2 comments
Is there an error in the output?
no