How can I make this so all players will be splited and teleported to different spawnpoints?
for _, plr in pairs(game:GetService("Players"):GetPlayers()) do
if plr.Character then
plr.Character.HumanoidRootPart.CFrame = spawnpoint.CFrame or spawnpoint2.CFrame or spawnpoint3.CFrame
print("All players have been teleported to: "..spawnpoint.Name)

1 comment
Use math.random to randomly select a spawnpoint.