game.Players.PlayerAdded:Connect(function(players)
local leaderstats = Instance.new("Folder", players)
leaderstats.Name = "leaderstats"
local points = Instance.new("IntValue",leaderstats)
points.Name = "Points"
end)
debounce = false local part = script.Parent part.Touched:Connect(function(hit) local humanoid = game.Players:FindFirstChild(hit.Parent.Name)
if humanoid then
if debounce == false then
debounce = true
local playerPoints = players.leaderstats.points
playerPoints.Value = playerPoints.Value + 1
end
end
end)

2 comments
care to explain the PROBLEM, it should work once since you arent changing the debounce again.
Yeah you need to be debounce = false after you do it so that it will run again. Unless you only want it to run once.