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

Telling when to override datastore spawn?

Asked by 4 years ago

So basically, I made a prison, where, when you bring someone inside the cell, his team saves, so when he leaves, he still has his prison spawn point. And now i need help, should i do so the prisoner is released automatically, (I have no idea how to do that). Or I do so when the person in mannualy taken out of the cell, his team updates, the only thing I know about that is to use SetAsync or UpdateAsync. Help me out please.

1 answer

Log in to vote
0
Answered by 4 years ago

You could detect the player touching the part, then when that has been completed, save a datastore as any value, as long as it is only for that one team. Then, when they join the game, check that datastore and then add them to that team, THEN load their character.

Links:

.Touched

Datastores

:LoadCharacter

Teams

Player.Team

You might want to check out:

Team Balancing

I will not provide code as you have not either.

Ad

Answer this question