I am making a point giver, when you click the part it gives you the chosen amount of money I made it to give you. I put it in a local script and it doesn't work. The points go into a value in the text which lists then amount of money. Here is the script:
plr = game.Players.LocalPlayer
points = plr.PlayerGui:FindFirstChild("MoneySystem").Money.Points
give = 5
debounce = false
function point()
if points == nil then
print("Not found")
else
if debounce then
debounce = true
print("It's found")
points.Value = points.Value + give
wait(1)
debounce = false
end
end
end
script.Parent.ClickDetector.MouseClick:connect(point)
--there isn't anything wrong in the Output. Help?

2 comments
I dont see the error in your code
EXACTLY, but it doesn't work for some reason ;-;