So I got the leaderboard, with the stages, but I don't know what script I should insert for all the checkpoints in my obby to make the stage number increase. Here's my serverscriptservice
game.Players.PlayerAdded:connect(function(player)
local leaderstats = Instance.new("Model")
leaderstats.Name = "leaderstats"
leaderstats.Parent = player
local stage = Instance.new("IntValue")
stage.Name = "Stage"
stage.Value = 0
stage.Parent = leaderstats
end)
If somebody could tell me the script that goes into checkpoints,that would be greatly appreciated

6 comments
I added the script onto the checkpoint, and named the checkpoint checkpoint 1. I then changed the checkpoint_name to checkpoint1, and i tested it, but when i walked onto the checkpoint nothing changed
Did you add a space in checkpoint1? If so, don't. I will test this for myself now.
No, I didn't add a space in checkpoint 1, i just wrote it that way
not sure what the other problem is, but is there anything stopping you from using roblox's standard spawnpoints? they're pretty common in obbies. also that hum.Died connection will cause a memory leak if not disabled :)
I have noticed a few errors, so I changed my script above.
Just one more question, do I need to change the first checkpoint_name to checkpoint1?