How do you add cframe rotation onto a cframe

the camera is being multiplied of a parts rotation and is running in a renderstepped

local x, y, z = CameraPart.CFrame:ToOrientation()
 Camera.CFrame *= CFrame.Angles(x, y, z) 

but since its multiplying, its not follwoing the parts rotation accuraretly, it keeps multiplying getting higher causing the rotation to be offset and exgarreted

is there anyway make it follow the rotation without it being exgarreted and offset?
i tried this but it didnt work

currentRotation = CameraPart.CFrame
 Camera.CFrame *= CFrame.Angles(x, y, z)  - CFrame.new(currentRotation.X, currentRotation.Y, currentRotation.Z)
1 Like

could i try adding it instead?

1 Like

If you want the Camera’s rotation to be the same as the rotation of the part, you can just do this:

Camera.CFrame = CameraPart.CFrame.Rotation + Camera.CFrame.Position

CFrame.Rotation is the same as CFrame - CFrame.Position.

2 Likes

this seems to lock the camera in 1 direction but it copies the cframes over properly

1 Like

i think Its locking the camera in cameraparts direction and camerapart is at 0,3,0, not welded to the character or anything

1 Like

this doesnt work but i guess it shows what am trying to get

 Camera.CFrame = Camera.CFrame + CFrame.Angles(CameraPart.CFrame.Rotation.X, CameraPart.CFrame.Rotation.Y, CameraPart.CFrame.Rotation.Z)