Why doesn't my keypad screen gui script work properly?
1 | Buttons [ 1 ] .MouseButton 1 Down:Connect( function () |
2 | Screen.Text = Screen.Text:gsub( '-' , '' ) |
This adds 1 to the screen, but for some reason it adds it to the start of the code. For example, if 123 is already on the screen, it would make it 1123, instead of 1231 like I want it to. I'm not sure how to properly use gsub and would appreciate some help. There's also a "-" already on the screen from the start because without it, the 1 doesn't get added for some reason.