I am failing to add orientation to an AlignOrientation instance

CurrentRotation.CFrame = CFrame.Angles(x+math.rad(15),math.rad(y),math.rad(z))

It has unintentional behavior.

How would I add it correctly, while keeping its original values, which are:

	local x = CurrentRotation.CFrame.Rotation.X
	local y = CurrentRotation.CFrame.Rotation.Y
	local z = CurrentRotation.CFrame.Rotation.Z
1 Like

I have tried to even make it 15+x but it doesn’t work. I even tried cframe.new()*cframe.angles. It doesn’t work. Is something with variables wrong?

keep in mind, it is alingorientation instance

I am unexperienced with cframes

1 Like

Like this?

part.CFrame = part.CFrame * CFrame.Angles(x, y, z)

1 Like

This is alignorientation, but I have tried that, in methods like:

x+math.rad(15)
math.rad(x+15)

1 Like

I know, replace part with align orientation. I’m on mobile so I’m lazy sorry. It’s different using rad.

2 Likes