I know how to teleport them all on random spawns, even though it is random, there is a chance of two or more of them spawning on the same spawn. How would I prevent this?
for i, player in ipairs(game.Players:GetChildren()) do
if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
wait(0.01)
local MapSpawns = ChosenMapClone.MapSpawns:GetChildren()
local r = math.random(#MapSpawns)
local MapSpawn = MapSpawns[r]
player.Character.HumanoidRootPart.CFrame = MapSpawn.CFrame+Vector3.new(0,3,0)
ps: this is only a portion of a script so that's why it's not showing an end
