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

How do you set a players spawn with code?

I'm trying to make a GUI that once clicked it sets your spawn point from the initial spawn to a different spawn. How do I do this? I've already tried changing teams though code but that didn't work.

1 answer

✓ Accepted answer
  1. First, insert the Team service by going Model >> Service >> Teams
  2. You will see the Team object in your explorer, you can add as many teams as you like
  3. Assign spawnlocations TeamColors that correspond with the TeamColors of the teams you just made
  4. When changing your spawn point, all you need to do is change the Team and TeamColor of the player (change them to the team with the spawn point that you want)

Hope this helped!

1 comment

1

Thanks! Helped a lot!

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