[ SOLVED ] Why won't camera go back to normal?
Asked by
4 years ago Edited 4 years ago
So, in my game, there are a bunch of GUIs that change the camera to face a block. Well, I want it where, when you press the button the camera goes back to normal and it no longer faces the block. The two scripts are in separate buttons, by the way.
Code to make it go back to normal:
1 | script.Parent.MouseButton 1 Click:Connect( function () |
3 | game.Players.LocalPlayer.CameraMode = Enum.CameraMode.Classic |
Script to make camera face a block:
01 | script.Parent.MouseButton 1 Click:Connect( function () |
03 | local Camera = game.Workspace.CurrentCamera |
04 | local Player = game.Players.LocalPlayer |
07 | repeat wait() until Player.Character |
08 | Camera.CameraType = "Scriptable" |
09 | Camera.CFrame = game.Workspace.Cutscene 4. CFrame |
The only problem is, the camera doesn't change back to normal, it's stuck looking at the Cutscene4 block. Thank you!