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

How to adjust lookvector direction?

Asked by 4 years ago
        local Bolt = game.ReplicatedStorage.bolt:Clone()
        Bolt.CFrame = script.Parent.Parent.Handle.CFrame*CFrame.new(0,0,-2)
        Bolt.Parent = workspace
        Bolt.Velocity = script.Parent.Parent.Handle.CFrame.lookVector * 50
        game.ReplicatedStorage.bolt.BodyVelocity.Velocity = script.Parent.Parent.Handle.CFrame.lookVector*40*2

I have a part in ReplicatedStorage with a BodyVelocity in the part, but whenever I rotate, the first time I fire, the bolt is fired in a direction to the left or right of me.

0
I don't see anything wrong with the script. Make sure that you're not rotating to the same direction marioman1932 48 — 4y

Answer this question