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

*Not a request* How would I go about making each player spawn at there own spawn?

Hi, In the game I am making, I need it so that each player will spawn at there own spawn when the round begins. It is like a minigame. Each player will have there own path to go down. How would I go about making a script that will put each player on there own pillar?

Thanks,

P.S. I am not asking for someone to make me a script, I am simply asking for some direction.

2 answers

First, you will need enough location and spawn points for if the game were full. Next, create a script that randomizes which spawn they go to. A little word of advice: index locations or randomize them in some other form and match them to players so the spawn points aren't based off of alphabetical or the same random order. Have a nice day

To set a player's spawn location, use player.SpawnLocation - might not be accurate - and to respawn a player all you have to do is use the player:LoadCharacter() method.

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