Lua Roblox Script: how to implement checkpoints on DataStore

How to make it so that during the game, the player in obbi touches the checkpoint, and if he dies after it, he gets to the checkpoint. When a player leaves the game, but then enters, he is on the checkpoint. How to do this, I use leaderstats as a counter of completed stages. Let's say that in leaderstats the number is 1, so it should get to the block, with this path: game.Workspace.Checkpoints.Stage1 - Checkpoints is the folder, Stage1 is the block on which it should the player will appear. How do I implement this in a separate script in ServerScriptService? I've seen a video where they create Teams, but my obbi has more than 100 stages

Author: A_Br2H, 2020-12-07