i was wondering if it is possible to have userdata that inherits another userdata with the luau feature.
i've already tried setting __index to return the super class. i also tried returning the metatable of the super, though i wasn't able to due to the metatable being wrapped around UserDataMetatable.
my goal is to have two types named Instance and WorldInstance, where Instance has a field named Name and WorldInstance has a field named Position. the user would then be able to access the Name field from an instance of WorldInstance. would that be possible?
i was wondering if it is possible to have userdata that inherits another userdata with the luau feature.
i've already tried setting
__indexto return the super class. i also tried returning the metatable of the super, though i wasn't able to due to the metatable being wrapped aroundUserDataMetatable.my goal is to have two types named
InstanceandWorldInstance, whereInstancehas a field namedNameandWorldInstancehas a field namedPosition. the user would then be able to access theNamefield from an instance ofWorldInstance. would that be possible?