CFrame's CFrame Changing Messes Up CFrames Angle Up

Hello So I am trying to learn CFrame And I had a issue which I couldnt Find Anywhere on the internet, so I came here, So Basically I have a script where you can click to move or rotate a brick and basically when you rotate the brick it’s fine, but once you click move and it moves it go back to it original orientation/ angle. I want it to stay at the same angle when they press move, I need some help doing this, here is the script for rotating and moving it

Rotate Script

local CFramePart = workspace.CFrame
script.Parent.MouseButton1Click:Connect(function()
	CFramePart.CFrame = CFramePart.CFrame * CFrame.Angles(math.rad(0), 100, 0)
end)

Move Script

local CFramePart = workspace.CFrame
script.Parent.MouseButton1Click:Connect(function()
	CFramePart.CFrame = CFrame.new(14.38, 0.5, 49.86)
	wait(1.5)
	CFramePart.CFrame = CFrame.new(14.38, 0.5, 80.37)
end)

You could just use Position instead of CFrame, no?

Also this means “rotate on the Y axis by 5,711 degrees” by the way. You may have meant

CFrame.Angles(0, math.rad(100), 0)

How would I use position? I bet it is simple just doesnt sound like something ive heard before.

Instead of

You’d do

CFramePart.Position = Vector3.new(14.38, 0.5, 49.86)

There are definitely ways to use CFrame without affecting rotation, but it’s a bit more work.

Thanks man this seem to work perfectly! Your Answer is now Marks As Solution!!