so i am making a bullet

bullet.CFrame = CFrame.new(char:FindFirstChildOfClass("Tool").tool.barrel.CFrame.p,pos)

that code is suppose to move it to the barrel which it does then rotate it so it is pointing the right direction but it doesn't the thing always points to one side of the map no matter what direction im facing so it is not because the front is the wrong way can anybody help me?

EDIT: oh also something that is important is that pos is mouse.Hit.p