Overriding bones in an animation with script

Hello, so basically ive got this animation for tank tracks to animate the tracks but I want to make the bones adjust to the floor. I’m doing this by raycasting every frame and then changing the worldposition of the bone.

However this does not give the desired effect as the animation constantly takes priority over the script and they go back and forth. Is there anyway to do this?

1 Like