How to get CFrame rotation to start by facing forward

it still bugs out with the code i sent? It didn’t do that when i tested it

yeah it did, but i fixed it with this

local i = 0
	
	while i < 180 do
		petModel:SetCFrame(CFrame.Angles(0,i/18 / math.pi * 2 % (math.pi * 2), 0) * CFrame.Angles(math.rad(-10),0,0))
		i += 1
		
		task.wait()
	end

Idk why i forgot abt this but you also could have created a separate part to the model and welded that part to the pet model’s root part, position the model at your downward angle and in the script you just rotate that block instead. That would also spin the dog while holding its orientaion