Hello, basically I am attempting to use the Abbreviation Number module. Module
My script is throwing me an error saying my number is nil, I’m not sure as to why it’s saying it’s nil when I print the number it’s giving me the number amount but the script is saying it’s nil.
You should send the entire script, or at least a larger portion of it. From the snippet you sent, we cannot tell what data type AbreviateNumber.Abbreviate(amount) will yield.
The “amount” passed through is clearly nil. That’s what the error is describing. Can you show more code before the method call, including the print statement?
I’m so sorry for bothering everybody, i fixed the issue I was using . instead of : for calling the function within the module and that seemed to fix my problem after switching it.