#Expected type table, got 'BasePart | Model' instead
20 messages · Page 1 of 1 (latest)
this is the initial type i defined for part
it's then narrowed down to be just BasePart | Model here
I'm not 100% sure you can typecheck robloxclasses im pretty sure they only work with vanilla lua
try doing part instead of basepart
you can, type checking is a thing that is introduced only by LuaU, it's not even in vanilla lua
is Inventory a table?
ah you can mb
it's a folder
i found a devforums post
the solution makes zero sesnse
adding local part = part fixes it for some reason??
im not even gonna ask
doesnt that just Disable typeChecking?
actually yeah it does
the thing is is that if you only had one parameter is doesnt show up with any unknown errors