I do not recall MouseButton1Click event passing any arguments, nor I can find anything on API reference. I have always used this event without any anyway and it was working fine. It may be your issue. Try this instead:
02 | local Player = game.Players.LocalPlayer |
04 | local Tics = Player:WaitForChild( "XPCASHFOLDER" ).Tics |
05 | local acquired = Player:WaitForChild( "Brawlers" ).HitmanAcquired |
06 | local Title = script.Parent.Parent.Title |
08 | button.MouseButton 1 Click:Connect( function () |
10 | if Tics.Value < 999 then |
11 | Tics.Value = Tics.Value - 1000 |
13 | script.Parent.Parent.Visible = false |
14 | elseif Tics.Value > 999 then |
15 | Title.Text = "NOT ENOUGH" |
16 | Title.TextColor = BrickColor.new( "Bright red" ) |
18 | script.Parent.Parent.Visible = false |
19 | Title.Text = "Are you sure you want to buy this?" |
20 | Title.TextColor = BrickColor.new( "Institutional white" ) |
Have a nice scripting session.