I'm trying to do a sort of calculator thing, where it multiplies whatever numbers you put into two Text Boxes when you press a Textbutton. Everytime I press the button, this error shows on the output:
Players.ax_447.PlayerGui.ScreenGui.Script:6: attempt to perform arithmetic on global 'firstvariable' (a string value)
I know I can make it work by making a variable that changes when the string value changes, but for that I have to type in every number individually. Is there any way to do this? If not, is there another way to make the type of thing I'm trying to make?

1 comment
Thanks! It pretty much worked after I changed a couple of things. I changed the names of my Gui to match the script, and I had to change the local sum to 0 and the local mul to 1. Then it worked perfectly!