Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How could i rotate the camera?

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

2 comments

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

0

But do i use Angles to change the Z angle?

1 answer

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.

2 comments

0

How do i rotate it' s Z angle with tween service, it doesn't work when i tried

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.