How to make the top face of a part face another object

Hi, I am trying to make a part face the mouse position but I only know how to make the Front face of the part face the mouse position but I am trying to make the Top face of the part face the mouse position instead.


	local startPosition = Humrp.Position + Vector3.new(0, 10, 0)
	local targetPosition = mousehit.Position 
		
	firespear.CFrame = CFrame.new(startPosition, targetPosition)
	

4ec46e90ed08c680abbe3708363daaf3

CFrame.Angles should help.

Just add * CFrame.Angles(0,0,0) at the end of the new CFrame and start adjusting the values until you get the proper result.
I think this one requires math.rad. From the looks of it you only need to mess with either 90 or -90 for math.rad just find the right slot to put it in.

1 Like

Thank you I mange to fix it after testing around with CFrame.Angles