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

How do you set a players spawn with code?

Asked by 7 years ago

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

Log in to vote
1
Answered by 7 years ago
  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
Thanks! Helped a lot! roblox99456789 104 — 7y
Ad

Answer this question