Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do i Teleport Each Player to a Different Spawn Point?

Like in a Minigame, but i dont want the math.random, because have the chance to teleport 2 players in the same Spawn Point...

The Spawns are all together in a folder..

1 comment

0

mash the player randomly and then for i, the spawns:getchildren() do for each spawn put the randomly diced player to that spawn

1 answer

This is easy.

Make a couple parts in the workspace. Then add them to a table and find a random one like so:

local spawns = {workspace:FindFirstChild('FirstSpawnName'), workspace:FindFirstChild('SecondSpawnName'), workspace:FindFirstChild('ThirdSpawnName')}

for i = 1,#spawns do
player.Character.Torso.CFrame = spawns[i]
end

This discussion is preserved as it was. New answers, comments, and votes are closed.