Having troubles with a camera script

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!

I am trying to rotate the player’s camera on the Z axis

  1. What is the issue? Include screenshots / videos if possible!
camera.CFrame = camera.CFrame * CFrame.Angles(0,0,math.rad(10))

I have tried running this line to rotate the axis, but it did not do anything. I can change the X and Y values and have them rotate, but Z would not rotate.

  1. What solutions have you tried so far? Did you look for solutions on the Developer Hub?

I have tried searching for solutions, but nothing could help. I don’t know if I am missing something or what, I’m just confused.

Have you tried changing the camera type to scriptable?

I tested it out and it worked, but I want the camera to remain interactable as usual without having to make complicated scripts.

Oh, do you want to change the subject of the camera but still makes it moveable?

sorry for the late response, but yes!

Can you not just change the CameraSubject property of the current camera?

Hadn’t noticed that there was a different script messing around with the camera script. woops

Thank you!

1 Like