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)