I found a very strange problem with the typechecker: an if-statement caused all the properties of a certain instance to have the ‘never’ type. It’s kind of specific and I couldn’t figure out the root problem or replicate it in a different context, but I had some leads. Since the script is not supposed to be shared with the public I will only share it with staff.
Snippets of code:
if not deflating then
rootPart.Deflate:Stop()
end
local mass = math.max(rootPart.AssemblyMass, 0.0001) -- 'mass' has the 'never' type.
Removing rootPart.Deflate:Stop() somehow makes the properties normal again.