Bone Heat Weighting: failed to find solution for one or more bones

I’m trying to model and rig a stegosaurus. But for some reason, I cannot apply the armature to the stegosaurus. Every time I try to, I get a message that says “Bone Heat Weighting: failed to find solution for one or more bones”. What do I do? I worked so hard on him. Someone please help!


No demo .blend file supplied with your post for review! Why not ?

Since we cannot check the mesh for you, you will have to check for any
Non manifold edges
Internal faces
Duplicate vertices/faces
Holes in the mesh
Any other mesh ‘errors’
etc

If nothing else you can manually weight paint the bones. Doesn’t look like you have that many. Post a file at http://pasteall.org/blend/ and give us the URL if you need the mesh reviewed.

I for some reason can’t upload my entire file of the stegosaurus for you to see. Could you help me with that?