i want to make a script that would allow me to control where the players spawn so for example the player spawns on a spawn pad and after that while he is still in the server no one else can spawn on that spawn pad.
✓ ANSWER ACCEPTED
how would you have each player spawn on his own spawn pad?
1 answer
✓ Accepted answer
Players = game.Players:GetPlayers()
Y = 4 --Or whatever your baseplate or floor y axis is + like 2
for i, v in pairs(Players) do
Torso = v.Character.Torso
v.RespawnLocation = Vector3.new(math.random(1, 100), Y, math.random(1, 100))
end
2 comments
0
That may not be entirely correct but it's along that idea. Make sure to accept this answer if it worked so everyone knows that it was been answered, also we both get reputation.
0
ik
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
There is a property in a Player that is "RespawnLocation". You could use a boolValue inside each SpawnLocation, to check if each SpawnLocation is being used. Then just use "PlayerAdded" and "PlayerRemoving" to change it upon arrival and leaving.