Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

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

Asked by 4 years ago
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
0
I don't recommend using 'math.huge' for forces. maxpax2009 340 — 4y

Closed as Not Constructive by maxpax2009, youtubemasterWOW, and JesseSong

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by 4 years ago

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

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