Random Error Occuring

Hello forummers, I’ve been making a button simulator myself using an eternity num, but for some reasons, I seem to be getting a weird error which breaks all of my game:

image

I don’t understand how it started happening, since I never got this before. This is where the error is occuring:

If needed, I can also send which eternity num I am using! Let me know if someone is down to help.

1 Like

Hi! Leme convert lua errors to English so you can understand what went wrong. invalid argument #1 means that the first element the bracket is not there aka nil. and that applies to the function called sign . The function sign is basically math.sign() . However, you might be scratching your head cuz you clearly put a value into the function. HOWEVER, the value you put in might be nil

Solution: print the parameter called Value . If it is nil , go to the line where you call function fromnumber . Ensure that the arguments pass something through

1 Like

Sorry for the late response, I’m not the best in scripting, but i think i was able to make what you suggested:

However, in the output, there doesnt seem to be any prints with “nil”

still available if someone is down to help :+1:

just put if not Value then return end at the top of the function