Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How could i rotate the camera?

Asked by 3 years ago

So i want to Rotate the camera sideways when the player performs an action, how could i do this?

0
a big help is knowing that (in a local script) the player camera = workspace.CurrentCamera and to get the CFrame of it it is workspace.CurrentCamera.CFrame Zeuxulaz 148 — 3y
0
But do i use Angles to change the Z angle? XxGhostBoy_HDxX 38 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago

You could use TweenService to change the Camera's CFrame.

You could directly change the CFrame of the camera.

I prefer TweenService, but It's up to you.

0
How do i rotate it' s Z angle with tween service, it doesn't work when i tried XxGhostBoy_HDxX 38 — 3y
0
If you want to change just the Z axis, then you will need to create a new CFrame as the CFrame properties beyond .CFrame are read-only. deeskaalstickman649 475 — 3y
Ad

Answer this question