there is an Error on a line for money change gui?
Ok so this is for my admin panel for changing peoples money but it seems to error on a line so I will put a comment on what line!
01 | script.Parent.AdminPanel [ "Add/Subtract Money" ] .Submit.MouseButton 1 Down:connect( function () |
02 | if (script.Parent.Parent.Parent.userId = = 10271988 or 22701216 or 85629297 or game.CreatorId) then |
03 | local aplayer = script.Parent.AdminPanel [ "Add/Subtract Money" ] .Username.Text |
04 | local player = game.Players:WaitForChild(aplayer) |
05 | local amount = tonumber (script.Parent.AdminPanel [ "Add/Subtract Money" ] .Amount.Text) |
06 | if script.Parent.AdminPanel [ "Add/Subtract Money" ] .Type.Text = = "Add" then |
08 | player.Money.Value = game.Players [ player ] .Money.Value + amount |
10 | if script.Parent.AdminPanel [ "Add/Subtract Money" ] .Type.Text = = "Subtract" then |
11 | player.Money.Value = game.Players [ player ] .Money.Value - amount |
13 | if script.Parent.AdminPanel [ "Add/Subtract Money" ] .Type.Text = = "Change" then |
14 | player.Money.Value = amount |
17 | if script.Parent.Notify.Texty.Text = = "Text" then |
18 | script.Parent.Notify.Texty.Text = "Access Denied" |
19 | script.Parent.Notify.Visible = true |
20 | script.Parent.Notify:TweenPosition(UDim 2. new( 0 , 0 , 0 , 30 ), 'Out' , 'Quad' , 0.35 ) |
22 | script.Parent.Notify:TweenPosition(UDim 2. new( 0 , 0 , 0 , 30 ), 'Out' , 'Quad' , 0.35 ) |
23 | script.Parent.Notify.Design:TweenSize(UDim 2. new( 0.9 , 0 , 0 , 2 ), 'Out' , 'Quad' , 0.35 ) |
26 | script.Parent.Visible = false |
27 | script.Parent.Notify:TweenPosition(UDim 2. new( 0 , 0 , 0 , 0 ), 'Out' , 'Quad' , 0.35 ) |
28 | script.Parent.Notify.Design:TweenSize(UDim 2. new( 0 , 0 , 0 , 2 ), 'Out' , 'Quad' , 0.35 ) |
30 | script.Parent.Notify.Texty.Text = "Text" |