Save checkpoint with DataStore?

How would I create a “level saving” system? Lets say i’m creating a horror game with checkpoints, and i want it so that if you have to leave, your checkpoint will be saved with data store, and the next time you join, you will load back into your last checkpoint? I just recently learned how to do simple saving with datastores like how to save leaderstat points and stuff like that. How would I do it with checkpoints/levels?

1 Like

you can try watching this video OBBY CHECKPOINTS / STAGES | Roblox Scripting Tutorial - YouTube Even thought it’s not an obby it still has the things you want

2 Likes

And for Saving a “level” you could just watch a simple datastore video like alvinblox Roblox DataStore Tutorial - Data Stores & Saving Data - Scripting Tutorial - YouTube

2 Likes

Assuming you know how to use DataStore2 you simply can just create a int value that saves a number. That number corresponds to what checkpoint the player was last at. So you can then do an if statement to see what the value is equal to then teleport the player to the position of where said checkpoint is at.

1 Like