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

How to manipulate the player's camera to view something other than him or her?

Asked by 9 years ago

Hi. How would I make the camera look at something other than the player? (Ex. Like a camera mounted on a wall).

Thanks so much!

1 answer

Log in to vote
1
Answered by
funyun 958 Moderation Voter
9 years ago

In a LocalScript, workspace.CurrentCamera.CameraSubject refers to the object that the player's camera focuses on.

--Run in a LocalScript in StarterPack
repeat wait() until workspace.CurrentCamera.CameraSubject
workspace.CurrentCamera.CameraSubject = workspace.CameraMountedOnWall
Ad

Answer this question