I made a leaderboard with Points, and made a point giver, and added a script, but it is saying at line 8 there is an error.
debounce = true
script.Parent.Touched:connect(function(hit)
humanoid = hit.Parent:FindFirstChild("Humanoid")
if humanoid ~= nil and debounce == true then
debounce = false
player = game.Players:GetPlayerFromCharacter(hit.Parent)
points = players.leaderstats.Points
points.Value = points.Value + 5
script.Parent.BrickColor = BrickColor.new("Really red")
wait(5)
debounce = true
end
end)
