script.Parent.Touched:connect(function(part)
-- make sure the part still exists
if not part.Parent then return end
-- make sure it's a humanoid
local humanoid = part.Parent:FindFirstChild("Humanoid")
if not humanoid then return end
workspace.nocpp.Value = workspace.nocpp.Value - 1
end)
How do i prevent workspace.nocpp.value from negating if the part(the parent of the script) was touched by the same person twice or more?

2 comments
THANKYOU
You're welcome! :)