How to get rid of false positive warnings in the script editor?


This is quite annoying. I added the type checking to help with things like autocomplete, however the Luau Linter doesn’t seem to like it much.

Is there any way for me to get rid of this false-positive warning?

Pretty sure the linter expects it to be an Instance exactly, not a Part. Perhaps you can kind of “silence” this by using Part? instead?

I believe the ? only works with any, so doing Part? has just created an actual error lol