Issue with gun model in model viewer

does anyone know why this is happening
I’m trying to rig a CSS model to the SMG bones but when I recompile this happens. It should be using the SMG bones with the mesh replaced, and I enveloped it, but this is what I get in model viewer when I load it as a weapon.


I think you’re supposed to load the weapon as a model. The load as weapon feature is for characters holding weapons.

I’m trying to get SMG animations working on it.
I tested it in garry’s mod, it should’ve worked, but it didn’t. Does anyone have a good tutorial on how to do this, because I’ve enveloped the mesh with the bones but it refuses to work.