Player = game.Players.LocalPlayer
mouse = Player:GetMouse()
mouse.Button1Down:connect(function()
if Player.bin.AttributePoints.Value >= 1 then
Player.bin.Agility.Value = Player.bin.Agility.Value + 1
Player.bin.AttributePoints.Value = Player.bin.AttributePoints.Value - 1
end
end)
COMMUNITY QUESTION
Why won't my script work? When i click it deletes all buttons. (Solved)
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
Line 09 has - 1 at the end.
Found out the reason is because of on line 07.. I used ">=" instead of "<="