Throwing Knife faces the wrong orientation when flying

It looks like that:

It should always go with the top, sharp part of the blade first. here’s the script:

    local arrow = game.ReplicatedStorage.Knife:Clone()
    arrow.Transparency = 0
    arrow.CFrame = CFrame.lookAt(tool.BodyAttach.Position, mouse.Origin.Position) 
    arrow.Rotation = char.HumanoidRootPart.Rotation + Vector3.new(90,0,0)

You should instead of changing the Rotation, use the CFrame along with CFrame.Angles for the rotation, like this:

arrow.CFrame = CFrame.lookAt(tool.BodyAttach.Position, mouse.Origin.Position) * CFrame.Angles(math.rad(90), 0, 0)
1 Like

Thank you, this works! (Character Limit)

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