Why wont the Camera to to my desired CFrame Value?
So I'm trying to make the Camera move to a Parts CFrame. Though instead of doing that it just moves 100+ studs away. My game is 99% terrain(Not sure if that helps). Any and all help is welcome.
01 | game:GetService( "UserInputService" ).InputBegan:connect( function (Input) |
02 | local Player = game:GetService( "Players" ).LocalPlayer |
04 | Input.KeyCode = = Enum.KeyCode.Q then |
05 | script.Parent.TextLabel:Destroy() |
07 | Player.Character.Torso.CFrame = workspace.TorsoPos.CFrame |
10 | workspace.CurrentCamera.CameraSubject = workspace |
11 | workspace.CurrentCamera.Focus = workspace.One.CFrame |
12 | workspace.CurrentCamera.HeadLocked = false |
13 | workspace.CurrentCamera.CFrame = workspace.One.CFrame |
14 | game:GetService( "StarterPlayer" ).CameraMode = Enum.CameraMode.Classic |
16 | workspace.CurrentCamera.CameraType = Enum.CameraType.Custom |