Hi, I’m always getting an error that says ChecpointNumber is nil…? Here is my code:
local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local CheckpointNumber = Player:FindFirstChild("CheckpointNumber")
local function onPartTouched()
if CheckpointNumber.Value == 0 then
CheckpointNumber.Value = CheckpointNumber.Value + 1
end
end
Maybe check to see if you have any typos in the name. I noticed in the OP you typed “ChecpointNumber”, missing the ‘K’. If you did that anywhere in the code then it would throw that error.