Keep Bullet not going downwards

I wanna set the cframe so that it does not go down and it just goes a straight line instead of going down, im a bit confused on why it points down

			local currentCFrame = plr.Character.PrimaryPart.CFrame * CFrame.new(0,0,-4)
			local orientationX, orientationY, orientationZ = currentCFrame:ToOrientation()

			
			bool2.CFrame = currentCFrame * CFrame.Angles(math.rad(0),0,0)
			
			 --* CFrame.Angles(0,1,1)
			
			local tween = game.TweenService:Create(bool2,TweenInfo.new(1.5),{["CFrame"] = (bool2.CFrame*CFrame.new(0,0,-75))})
			tween:Play()

im trying to make it so the X rotation value of the cframe always stays 0, so it can go straight

1 Like

The issue is that you are multiplying the existing CFrame by an angle instead of resetting the rotation entirely. You should construct a new CFrame using only the position from your currentCFrame and a fixed rotation vector, like CFrame.new(currentCFrame.Position). This way, the X axis stays at zero because you aren’t inheriting the old orientation.

2 Likes

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