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

Is there any way to set the spawn of a player via script?

Asked by 7 years ago

Hi, I am making an obby on roblox but with my own unique idea which is basically where a new player spawns in the lobby in the team called "Chilling Out" and from the lobby the player can either go to the Teleporter Room (which is how players will get to the set of obstacle courses they are doing) or buy stuff at shops in the lobby with their coins they have earned from completing an Obstacle Course. My Problem is that I want to be able to set the spawn on a player if they are touching the correct spawn location, I know I could just use "AllowTeamChangeOnTouch" but I don't want to clog up my game with a ton of teams I just want one team per obstacle course. To me the only way to get people to change their spawns is with "AllowTeamChangeOnTouch" so if anyone could find a way to change a players spawn with a script I will be forever thankful.

0
Just save the last spawn touched location? User#5423 17 — 7y
0
kingdom5 what do you mean by that? Cheesepotato999 8 — 7y
0
Check the obby template in roblox. it uses a Object value holder to store the spawn part. User#5423 17 — 7y
0
though you could just use a cframe or store the value in a script which is probably best. User#5423 17 — 7y
View all comments (3 more)
0
kingdom you have solved it for me, you should have posted this comment as an answer so I could have closed this question but anyways thank you a lot! Cheesepotato999 8 — 7y
0
There are multiple methods to do this so I cannot answer this question, I can only offer possible solutions. User#5423 17 — 7y

Answer this question