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

Is it possible to save checkpoints to the Data Store?

Asked by 10 years ago

I am making an adventure game and I am curious if I can save A players checkpoint to the data store, so when they return they will spawn back at the saved checkpoint. Is this possible to do?

1 answer

Log in to vote
1
Answered by
Minifig77 190
10 years ago

What I would do would be to assign each checkpoint as a number. Then, with DataStore, you would save the checkpoint number along with the player's name. Whenever the player joins the game again, you would have a function that finds the number of the checkpoint of that player, and would then teleport the player to the corresponding checkpoint.

0
You could also save a table of Vector3 values. TheGuyWithAShortName 673 — 10y
Ad

Answer this question