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

How to return the camera to the player?

Asked by
Ulysies 50
8 years ago

So I have used a script to take the players camera and spin around an object. In another script, when someone presses the begin GUI it disables the spin script and kills them. Now I need to be able to return the camera to the player.. How would I go about doing so?

1 answer

Log in to vote
1
Answered by
Im_Kritz 334 Moderation Voter
8 years ago

So to return the camera back to the player, all you got to do is change the all the player's camera properties back to the default values. Which are the camera's CamerSubject and CameraType.

In a local script, inside of the player's character or the player.

workspace.CurrentCamera.CameraSubject = game:GetService('Players').LocalPlayer.Character.Humanoid
workspace.CurrentCamera.CameraType = "Custom"
Ad

Answer this question