Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
0

Is it possible to save checkpoints to the Data Store?

Asked by 5 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 185
5 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 616 — 5y
Ad

Answer this question