You need to use an object value. A simple int will do fine for your case since you are counting whole numbers, but if you want higher accuracy, you will need a decimal. Simply right-click > insert new instance > pick the object value you need (search for int, number, etc.) and insert it. Set the default value, and use that object in your scripts. As for global variables, those are only available in server scripts; modules can use them if they were called from a server script but can’t in a local script. More about that here: