Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 7 years ago

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

Log in to vote
0
Answered by 7 years ago

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

Ad
Log in to vote
0
Answered by 7 years ago

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.

Answer this question