Knockback Help Keeps going Forward

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.

If you want the “back” vector then try

hit.Parent.HumanoidRootPart.CFrame.LookVector * -100

Not sure why its not working…

1 Like

Works great also is there another way to stop the body velocity or no?

just debris it like:

local ds = game:GetService("Debris")

ds:AddItem(BodyVelocity,1)

Edit: An alternative is to just set the velocity to zero then destroying it

1 Like