I have been trying to use Attributes to use as Values here’s what I did:
Gas, MaxGas, gasPerSecond is an attribute of numberValue
when I try to print each one of them it returns a number
but when I try to perform operations like
gas - gasPerSecond
it returns:
I’m I just dumb, or I really can’t perform math operations on Attributes?
The last solution I did was converting it to:
tonumber(gas) - tonumber(gasPerSecond)
Output’s still the same error. Please help Im stuck on this small issue.