Help with knockback making things fly

My problem with knockback is that when the target hits a wall or collides with an object, it more often than not just flies/flings. I tried adding a touch event to the humanoidrootpart, when it is touched by a wall (i have the walls named the same thing) it anchors it self, checks if the Bodyvelocity still exists then if it does, sets its velocity to Vector3.new(0,0,0) then unanchors after .1 seconds, despite that, the problem still persists

You could try disabling the “Ragdoll” state from the Humanoids of your players.

https://developer.roblox.com/en-us/api-reference/enum/HumanoidStateType
https://developer.roblox.com/en-us/api-reference/function/Humanoid/ChangeState