Make A Checkpoint Change Its Color If The Player Stage is more than X ( Locally )

so i guess the checkpoint value is game.Workspace:WaitForChild(β€œ1”)
?

If your checkpoint name is β€œ1” and his parent is game.Workspace, it’s yes.

The player must reset, only then the checkpoint will change its color

1 Like

There were a problem with .Changed event. Read this porst: .Changed does not fire when connected to local scripts - #3 by madattak

1 Like

Why wont the .Changed event fire

1 Like

Have you tried to reload your saved file after restarting your computer?

reload saved file? How do you do that

He called the function instead of just passing it for the .Changed event.

local checkpoint = <instance value>  --Replace <instance value> by the checkpoint instance.
local stage =  <number value> --Replace <number value> by the stage of the checkpoint.
local playerStage = game.Players.LocalPlayer:WaitForChild("leaderstats"):WaitForChild("Stage")

local function ChangeCheckpointColor()
    if playerStage.Value >= stage then
        checkpoint.BrickColor = BrickColor.new("Lime green")
    end
end

ChangeCheckpointColor()
playerStage.Changed:Connect(ChangeCheckpointColor)

How do you reload a saved file. My obby is a group game

I replaced change with while true do and wait()