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)