I want to set part of a cframe to another cframe, for example:
camera.CFrame = Vector3.new(cameraPart.CFrame.X, 0, 0)
How would I go about doing this?
I want to set part of a cframe to another cframe, for example:
camera.CFrame = Vector3.new(cameraPart.CFrame.X, 0, 0)
How would I go about doing this?
You can do something like this:
camera.CFrame = CFrame.new(cameraPart.CFrame.X,camera.CFrame.Y,camera.CFrame.Z)
I get an error:
(CFrame expected, got Vector3)
You need to use CFrame and not Vector3
ah yes my bad thank you very much