I made alot of assumptions since your request was so vague. Might wanna tell me how your teleportation locations are laid out.
spawns = game.Workspace.Map.spawns:GetChildren()--idk,just put all your parts in one group
number = math.random(1,#spawns)
game.Workspace.Player.Torso.CFrame = game.Workspace.map.spawns[number].CFrame
^ this only works if you name your teleport parts a number. Honestly I had i hard time figuring out the random part, this is my best solution.
|