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.
First, insert the Team service by going Model >> Service >> Teams
You will see the Team object in your explorer, you can add as many teams as you like
Assign spawnlocations TeamColors that correspond with the TeamColors of the teams you just made
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)