Typechecking problem

Got two metatables in my code:
image

Yet I get an error here, saying that function 'AddWing' is not compatable with aeroMethods

2 Likes

Run it and see if it works
If it does you can just ignore it

If the typecheck bugs you just add --!nocheck at the top of the script

2 Likes

Kind of off topic, can i have you script editor pallette??

1 Like

image
image
image
image

1 Like

is putting everything inside {{}} instead of {} intentional? because that what seems to be causing the issue

1 Like

Despite both aeroMethods and wingMethods having a similar type, self’s type in an aeroMethods function is error-type whilst for wingMethods their type is, as expected, wingMeta
image

1 Like

Whoops, your post just loaded after i made my previous reply. Yep, that was unintentional, thanks!

1 Like

As conclusion, warning still shows but I’ve used !nocheck to ignore it, haven’t yet tested it in run but I’ve tested it using the command bar and it works!

Thanks to @flowAces for spotting out the typo and @KristinaMoment for giving the --!nocheck tip

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.