I just want to expand on this (based on touching a part and a value going up):
function onTouch(part)
local humanoid = part.Parent:FindFirstChild("Humanoid")
if (humanoid ~= nil) then
game.Players.LocalPlayer.leaderstat.Status.Value + 2
wait(0.003)
script.Parent:Destroy()
end
end
script.Parent.Touched:connect(onTouch)

2 comments
value = value +2
???????