So this is my KnockBack:
local bv = Instance.new("BodyVelocity") local hrp = player.Character:FindFirstChild("HumanoidRootPart") local hitHrp = hitChar:FindFirstChild("HumanoidRootPart") local knockBackIntensity = 100 bv.Name = "BV" bv.MaxForce = Vector3.new(500000, 0, 500000) bv.Velocity = hrp.CFrame.lookVector * knockBackIntensity bv.Parent = hitHrp debris:AddItem(bv, .2)
It works great and all but the knockback distance seems to be really inconsistent?
When the player gets hit diagonally, it goes far. But when hit from the front, back, sides, it doesn’t go far.
I am guessing it has to do with the
bv.Velocity = hrp.CFrame.lookVector * knockBackIntensity
What do you think?