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

Help with adding a lookVector to force?

Asked by
FiredDusk 1466 Moderation Voter
6 years ago

I am making a hammer and when it hits another character, it suppose to add a force (velocity) to push the character back b/c of them being hit. I am unsure on how to explain this but, the code should be fairly simple to understand. The BodyVelocity's velocity is staying the same.

Force.Velocity = Vector3.new(Character.Head.CFrame.lookVector * 30,0,0)

1 answer

Log in to vote
1
Answered by 6 years ago
Force.Velocity = Character.Head.CFrame.lookVector * Vector3.new(30,0,0)
Ad

Answer this question