this script is to pick up a coin and to add a point on the leader stats but it won't let me add the points to the leader stats.
local coin = script.Parent
function ont(hit)
if hit.Parent:FindFirstChild("Humanoid") then
Points.Value = Points.Value + 1
coin:Destroy()
end
end
game.Workspace.Part.Touched:connect(ont)
