So I’m trying to make a knockback system. But it keeps going forward instead of backwards. Also is there an easier way to stop the body velocity?
local KnockBack = Instance.new("BodyVelocity")
KnockBack.Name = "Knockback"
KnockBack.MaxForce = Vector3.new(10000,10000,10000)
KnockBack.Velocity = (-hit.Parent.HumanoidRootPart.CFrame.lookVector) * 100
KnockBack.Parent = hit.Parent.HumanoidRootPart
wait(0.25)
KnockBack:Destroy()
Thanks for reading.