-
What do you want to achieve? Keep it simple and clear!
i want to add 2 values in a function (that is in a module script) -
What is the issue? Include screenshots / videos if possible!
it just doesn’t add the values together
printing cashamount and cash shows the correct values for both
(the image of the script that calls this function)
-
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
replacing cash = cash + cashamount with cash += cashamount
adding wait() after the addition