help needed!(FPS tutorial)

When my robot is supposed to die fall it just becomes invisible but keeps functioning and his gun is visible. The error says 'could not find animation component but a script is trying to access it' i removed the animation component when i was making the ragdoll and i think that is the reason. but it doesnt fall it just becomes invisible. i added the ragdoll in the deadreplacement section but its still not working.

have you tried putting the animation back and setting it like the original?