FastCast bullet does not go in the correct direction

I need help with this specifically using fastcast, It’s always firing at the front direction everytime I rotate it, It’s using the attachment’s LookVector for the direction in the :Fire method.

local directionalCF = CFrame.new(Vector3.new(), FirePointObject.Position)
local direction = (directionalCF * CFrame.fromOrientation(0, 0, RNG:NextNumber(0, TAU)) * CFrame.fromOrientation(math.rad(RNG:NextNumber(MIN_BULLET_SPREAD_ANGLE.Value, MAX_BULLET_SPREAD_ANGLE.Value)), 0, 0)).LookVector

Thanks in advance for those who help out.

Is there any errors in the output?

Nope. But this is no longer needed as I’ve solved it by using a different algorithm for the direction.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.