Can someone help me with my knockback system?

You mean like this?