Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How would I make the character move forward when hit from behind?

local bv3 = Instance.new("BodyVelocity")
			bv3.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
			bv3.Velocity = Humanoid.Parent.HumanoidRootPart.CFrame.lookVector + Vector3.new(0, -30, 30) * 6

1 comment

0

I don't recommend using 'math.huge' for forces.

1 answer

✓ Accepted answer

Try multiplying the CFrame's LookVector instead of adding a Vector3 to it.

Humanoid.Parent.HumanoidRootPart.Velocity = Humanoid.Parent.HumanoidRootPart.CFrame.LookVector * 100

This discussion is preserved as it was. New answers, comments, and votes are closed.