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?
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"