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..
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..
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.
1 comment
mash the player randomly and then for i, the spawns:getchildren() do for each spawn put the randomly diced player to that spawn