Ok so I have a obby with checkpoints and when you step on checkpoints your Stage leaderstats go up by 1 and when you die you spawn at the checkpoint but I made it when you step on it a text label appears and says Checkpoint reached! but its not working and they are 2 seperate scripts but the local scripts not working heres the script Script:
local plr = game.Players.LocalPlayer
local brick = script.Parent
brick.Touched:Connect(function(hum)
hum = hum.Parent:FindFirstChild("Humanoid")
if hum then
plr.PlayerGui.Checkpoint.CheckpointText.Visible = true
wait(3)
plr.PlayerGui.Checkpoint.CheckpointText.Visible = false
end
end)
