How To Make A Checkpoint System In Roblox Studio
Build an obby checkpoint system in Roblox Studio with numbered SpawnLocations, lowercase leaderstats tracking, RespawnLocation, and anti-skip checks.
- Difficulty
- Beginner
- Time Needed
- 15 To 20 Minutes
- Checkpoint Folder
- Workspace > Checkpoints (SpawnLocations Named 1, 2, 3...)
- Leaderboard Folder
- leaderstats (Must Be All Lowercase)
- Respawn Property
- Player.RespawnLocation (Requires SpawnLocation)
- Required Spawn Flags
- Anchored = true, Enabled = true, Neutral = true (Without Teams)
Organize Numbered SpawnLocations Inside Workspace
Clean obstacle course checkpoints start with predictable naming rather than separate scripts buried inside every pad. Create a Folder named Checkpoints directly under Workspace, then insert SpawnLocation objects inside it and rename them strictly as sequential integers: 1 for the starting platform, 2 for the next stage, 3 for the following stage, and so on.
Select every SpawnLocation inside Checkpoints and review four Properties before scripting: lock Anchored to true, confirm Enabled is true, keep CanTouch enabled so touch triggers fire, and adjust Duration to control how many seconds a freshly respawned player keeps spawn ForceField protection (setting Duration to 2 or 3 seconds feels responsive on fast obstacle courses).
Understand How RespawnLocation And Neutral Work
Modern Roblox lets server scripts control where an individual player returns after falling or resetting through the Player.RespawnLocation property—eliminating older workarounds that created a separate Team color for every stage. However, Roblox enforces three strict rules on any SpawnLocation assigned to RespawnLocation, and breaking any one silently falls back to random spawning.
First, the assigned object must be a SpawnLocation instance (not a standard Part) parented inside Workspace. Second, its Enabled property must remain true. Third, either Neutral must be set to true, or—if Neutral is false—the SpawnLocation's TeamColor must match the player's TeamColor. If your obby does not use Teams, leave Neutral checked on every checkpoint and rely on the server script to lock each player onto their own stage.
Track Player Progress With Lowercase Leaderstats
Displaying current stages in Roblox's built-in PlayerList (the Here view of the top-right leaderboard) requires creating a Folder named leaderstats inside each Player object when they join, then placing an IntValue named Stage inside it. Official Creator Hub guidelines stress that the folder name must be all lowercase—Leaderstats or LeaderStats will never appear on the scoreboard.
Keeping Stage inside leaderstats on the server automatically replicates the stage number to every client's scoreboard while keeping write authority safely locked on the server.
Write One Server Script For All Checkpoints
Place a single server Script inside ServerScriptService to create each player's leaderstats, bind every numbered SpawnLocation inside Workspace.Checkpoints, and guarantee reliable first-join positioning. Because multiple Neutral SpawnLocations exist in Workspace when a brand-new player loads in, the script sets RespawnLocation to Stage 1 immediately and uses task.defer with character:PivotTo() inside CharacterAdded so no new joiner accidentally spawns mid-course.
Checking humanoid.Health > 0 prevents defeated ragdolls from triggering the next pad as they tumble off a ledge, and testing stageNumber == stage.Value + 1 forces players to clear stages strictly in sequence.
local Players = game:GetService("Players")
local checkpointsFolder = workspace:WaitForChild("Checkpoints")
local function getCheckpoint(stageNumber: number): SpawnLocation?
local found = checkpointsFolder:FindFirstChild(tostring(stageNumber))
if found and found:IsA("SpawnLocation") then
return found
end
return nil
end
local function onPlayerAdded(player: Player)
local leaderstats = Instance.new("Folder")
leaderstats.Name = "leaderstats"
leaderstats.Parent = player
local stage = Instance.new("IntValue")
stage.Name = "Stage"
stage.Value = 1
stage.Parent = leaderstats
local firstSpawn = getCheckpoint(1)
if firstSpawn then
player.RespawnLocation = firstSpawn
end
player.CharacterAdded:Connect(function(character)
local target = getCheckpoint(stage.Value)
if not target then
return
end
player.RespawnLocation = target
task.defer(function()
if character.Parent then
character:PivotTo(target.CFrame + Vector3.new(0, 4, 0))
end
end)
end)
end
local function connectCheckpoint(pad: Instance)
if not pad:IsA("SpawnLocation") then
return
end
local stageNumber = tonumber(pad.Name)
if not stageNumber then
return
end
pad.Touched:Connect(function(otherPart)
local character = otherPart:FindFirstAncestorOfClass("Model")
if not character then
return
end
local humanoid = character:FindFirstChildOfClass("Humanoid")
if not humanoid or humanoid.Health <= 0 then
return
end
local player = Players:GetPlayerFromCharacter(character)
if not player then
return
end
local leaderstats = player:FindFirstChild("leaderstats")
local stage = leaderstats and leaderstats:FindFirstChild("Stage")
if stage and stage:IsA("IntValue") and stageNumber == stage.Value + 1 then
stage.Value = stageNumber
player.RespawnLocation = pad
print(player.Name .. " unlocked Stage " .. tostring(stageNumber))
end
end)
end
for _, child in checkpointsFolder:GetChildren() do
connectCheckpoint(child)
end
checkpointsFolder.ChildAdded:Connect(connectCheckpoint)
Players.PlayerAdded:Connect(onPlayerAdded)Prevent Stage Skipping And Common Respawn Bugs
If an experience intentionally allows shortcuts or open exploration where reaching Stage 5 directly should count, swap stageNumber == stage.Value + 1 for stageNumber > stage.Value—otherwise keep the strict + 1 rule so players cannot shortcut past hard sections. Avoid changing checkpoint colors globally on the server when one player touches a pad, because every other player still behind that stage would see it already activated; send a RemoteEvent to that single client to play a sound or recolor the pad locally instead.
Finally, watch for two common layout mistakes: delete the default Baseplate SpawnLocation sitting outside the Checkpoints folder so Roblox does not select it accidentally, and keep four studs of open space above every pad so characters never spawn embedded inside overhanging ceilings.