ERROR:SCRIPT: (null) (null) error?

After adding his line

gui.animate(circle, "scale", vmath.vector3(0,0,1), gui.EASING_INQUAD, 3, 0, fail())

to my code, I’m getting a weird error;

image

Is this a bug, and how do I fix it?

First thing that pops out to me is that you are calling the function fail rather than referencing it. So, change fail() to fail.

gui.animate(circle, "scale", vmath.vector3(0,0,1), gui.EASING_INQUAD, 3, 0, fail)
2 Likes

Oh. that fixed it, thanks!
Still weird that the error message is “null” tho…

Yes, not very informative!

1 Like