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

How to make a different viewing option?

Asked by 9 years ago

In some games, there is a button and if you press it, it shows a different camera, kinda like a spectate. How would I make this. Like a gui that you press, and shows a different camera, like a still camera, that you can see yourself through.

1 answer

Log in to vote
0
Answered by 9 years ago

You can modify it by getting the local player's camera (game.Workspace.CurrentCamera) and then using it's property .CameraSubject like so:

local camera = game.Workspace.CurrentCamera;
camera.CameraSubject = Other.Object.Path
Ad

Answer this question