Why will the bullet always have the same rotation? The rotation axis i want it to rotate on is the y axis. I want it to move in the same direction as the gun is facing.
like if i aim the gun upwards the bullet still dont move upwards.
when i tried printing Dir.Y it printed values like 80 or 40 but the bullet has something completely else what do i do wrong? this is a localscript
if script.Parent.Parent.Humanoid.MoveDirection.X == 0 then if Dir.Y > 0 then Bullet.CFrame = CFrame.new(Pos.X,Pos.Y+0.3,50) * CFrame.Angles(math.rad(Dir.X),math.rad(Dir.Y),math.rad(Dir.Z)) elseif Dir.Y < 0 then Bullet.CFrame = CFrame.new(Pos.X,Pos.Y+0.3,50) * CFrame.Angles(math.rad(Dir.X),math.rad(Dir.Y),math.rad(Dir.Z)) end else if Dir.Y > 0 then Bullet.CFrame = CFrame.new(Pos.X+3,Pos.Y+0.3,50) * CFrame.Angles(math.rad(Dir.X),math.rad(Dir.Y),math.rad(Dir.Z)) elseif Dir.Y < 0 then Bullet.CFrame = CFrame.new(Pos.X-3,Pos.Y+0.3,50) * CFrame.Angles(math.rad(Dir.X),math.rad(Dir.Y),math.rad(Dir.Z)) end end