Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Why won't this Point Giver script for leaderboard not working?

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)

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.