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

Telling when to override datastore spawn?

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

✓ Accepted answer

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.

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