can some one help me with this add points scirpt??
Asked by
6 years ago Edited 6 years ago
ok so here is the script:
01 | local Button = script.Parent |
02 | local Player = game:GetService( "Players" ).LocalPlayer |
03 | local UserInput = game:GetService( "UserInputService" ) |
05 | script.Parent.MouseButton 1 Down:connect( function () |
06 | if Player:FindFirstChild( "Points" ).Value > 0 and canclick then |
07 | Player.Strength.Value = Player.Strength.Value + 1 |
08 | Player.Points.Value = Player.Points.Value - 1 |
there is a text box that should add the amount of points but it wont do it
(Edit)
this is how it looks like in the explorer
https://gyazo.com/4fcd215265602051b846b3611583be38
and the GUI
https://gyazo.com/5804ee76798d2bac9fb83e933da92c99