My script seems to be getting very confused. Most of the time when I type
IntValue.Value = 0 --or whatever value
it works perfectly find but in this one case it gives me the error “attempt to index number with ‘Value’”. I have double checked that the variable is refering to the IntValue itself and not IntValue.Value but I am getting the same error, however it works fine if I just do IntValue = 0 somehow. Here is an image of the variable referencing the IntValue as well as the location of the IntValue in the explorer :