Recently I’ve been developing a combat system and I want to add knockback to when you hit someone, I’ve messed around with AssemblyLinearVelocity but it doesn’t work well as when the player dies their body goes flying when u hit it again, and also it only works in one direction (and also is glitchy sometimes).
I’ve looked around on the forums too but all of them are outdated and use BodyVelocity which is deprecated now.
if the inconsistent knockback is the only other issue here i think you can actually reset a character velocity for a split second e.g assemblylinearvelocity = vector3.new() or .anchored = true then apply the knockback again
as for going in one direction, perhaps you’re not making the velocity relative to the direction of force?
u can have two parts, A and B and you want B to fly away from A as A kicked B and B is the one experiencing the knockback
in this example B would have an alv of something like (partA position - partB position).unit * 300