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

How would I go about saving a player's place when joining a game?

Asked by 4 years ago

Basically, what i'm trying to achieve is a script that is placed in the main place of a game. And when that script detects a player, it will send that player to a different place of said game if they logged out there before. Is this even possible, and if it is, how would I even start a script like this?

1 answer

Log in to vote
0
Answered by
gunter5 17
4 years ago

simply make a value in a datastore with the current place id of where the player is. then save the data when they leave. once they rejoin the game simply have the data load and check the place id, if the place id is one that matches a place in your game, teleport them to the place.

Ad

Answer this question