unparent the shadow. the script already handles moving the shadow around.
run the script on the character, not the shadow.
make the shadow no collision on the physics panel. if left on static, the character will collide with it.