Roblox Checkpoints with Respawn at the Last Saved Point
Generate a professional checkpoint system for Roblox in which the player activates progress points and respawns automatically at the last valid checkpoint after dying or rejoining the game. The prompt guides the AI to adapt the code to the real names of folders, parts, tags, RemoteEvents, and conventions in your project.
The solution requires server-authoritative architecture, progress validation, protection against unauthorized activations, per-player debounce, CharacterAdded handling, and compatibility with checkpoints based on Parts, SpawnLocations, or CollectionService. It also includes optional persistence with DataStore, without trusting the client to define positions or progress.
Ideal for obbies, platform games, adventure maps, stage races, and experiences with linear or branching progress. The requested result is a complete, commented Luau Script ready to paste into Roblox Studio, along with installation and testing instructions.
Act as a senior Roblox Luau developer, specialized in secure multiplayer systems and server-authoritative architecture. Create a complete checkpoint system with automatic respawn at the last saved point, adapted to the context of my game that I will provide below.