How to make an object shoot in the direction the character is facing?

I’ve already reviewed as many forum posts on this topic as I can and I’d like some more specified help if that’s possible. I want to shoot out three models in front of me, one shooting slightly to the left, one slightly to the right and one forward. Currently, I have a BodyThrust object on each model, but that made the models fly around the world instead of shooting in the direction I want. Here is my code so far:

cloned1.Hitbox.BodyThrust.Location = tool.Handle.Orientation
cloned2.Hitbox.BodyThrust.Location = tool.Handle.Orientation
cloned3.Hitbox.BodyThrust.Location = tool.Handle.Orientation

cloned1.Hitbox.CFrame = playermodel.HumanoidRootPart.CFrame*CFrame.new(-5,0,-9)
cloned2.Hitbox.CFrame = playermodel.HumanoidRootPart.CFrame*CFrame.new(0,0,-9)
cloned3.Hitbox.CFrame = playermodel.HumanoidRootPart.CFrame*CFrame.new(5,0,-9)

Help would be appreciated. Thanks in advance.

I believe you can still use the body thrust method,

Make sure the force direction is equal to

local bodythrustForce = Vector3.new(0,0,-1)*forceMagnitudeStrength

To make the part move in the direction it’s looking at as body thrust relative to the part.

Otherwise try using BodyForce or BodyVelocity which isn’t relative to the part and you can use this as your direction, the strength is up to you to experiment with.

local bodyForce = playermodel.HumanoidRootPart.CFrame.LookVector*forceMagnitudeStrength--force direction
1 Like