Pet facing the wrong way

When I am in a certain direction the pet is sideways instead of the way the character is facing.
Picture:
image
Code:

local Pets = game:GetService("ServerStorage"):WaitForChild("Pets")

game.Players.PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function(character)
		local Head = character:WaitForChild("Head")
		local currentPet = "Cloud"
		local clonedPet = Pets:FindFirstChild(currentPet):Clone()
		clonedPet.Parent = character
		
		while wait() do
			local pos = Head.CFrame * Vector3.new(2, 2, 2)
			clonedPet.Main.BodyGyro.CFrame = character.HumanoidRootPart.CFrame
			clonedPet.Main.BodyPosition.Position = Vector3.new(pos.x, pos.y, pos.z)
		end
	end)
end)

why is there ````` on end try deleting that after end)

It’s a mistake, that isn’t my issue.

I’m sure it’s just because it’s not rotated correctly

Nope, it just never rotates…

Try

local offsetAngle = CFrame.Angles(0, math.rad(90), 0)
clonedPet.Main.BodyGyro.CFrame = character.HumanoidRootPart.CFrame * offsetAngle;

Change the offsetAngle’s math.rad(90)'s 90 to the angle that points the right direction.

Didn’t change anything, it’s when I move to face different places it changes.

It may be the direction that your root part or mesh is facing? Make sure the front face is facing forwards and the correct way?

Never mind, I fixed it. It was nothing to do with the mesh.

Ok! No worries! Good luck with whatever project you are creating!