клади в StarterCharacterScripts local playersSvc = game:GetService('Players')
local userInputSvc = game:GetService('UserInputService')
local player = playersSvc.LocalPlayer
local ch = player.Character or player.CharacterAppearanceLoaded:Wait()
local hum = ch:WaitForChild('Humanoid')
workspace.CurrentCamera.CameraType = Enum.CameraType.Custom
userInputSvc.InputBegan:Connect(function(input:InputObject, is_processed:boolean)
if input.UserInputType == Enum.UserInputType.Keyboard then
local kc = input.KeyCode
if kc == Enum.KeyCode.A then
workspace.CurrentCamera.CFrame = ch.Head:GetPivot() * CFrame.fromEulerAnglesYXZ(0, 0, 0)
elseif kc == Enum.KeyCode.D then
workspace.CurrentCamera.CFrame = ch.Head:GetPivot() * CFrame.fromEulerAnglesYXZ(180/180*math.pi, 0, 0)
end
end
end)
end)