Switching between side view and 3rd person

Hi, here is the side view script for the Roblox Studio game “Line Runner”

How might be the best way of returning to normal default camera settings? I want to be able to switch back and forth from side view to normal 3rd person view. Thank you.

local targetDistance = 30
local cameraDistance = -30
local cameraDirection = Vector3.new(-1,0,0)

local targetDistance = 30
local cameraDistance = -30
local cameraDirection = Vector3.new(-1,0,0)

local currentTarget = cameraDirectiontargetDistance
local currentPosition = cameraDirection
cameraDistance

game:GetService(“RunService”).RenderStepped:connect(function()
local character = localPlayer.Character
if character and character:FindFirstChild(“Humanoid”) and character:FindFirstChild(“HumanoidRootPart”) then
local torso = character.HumanoidRootPart
camera.Focus = torso.CFrame
if torso:FindFirstChild(“FastStart”) == nil then
camera.CoordinateFrame = CFrame.new(Vector3.new(torso.Position.X, torso.Position.Y + 10, torso.Position.Z - 20) + currentPosition,
Vector3.new(torso.Position.X, torso.Position.Y, torso.Position.Z - 20) + currentTarget)
else
–Lower camera for fast start
camera.CoordinateFrame = CFrame.new(Vector3.new(torso.Position.X, torso.Position.Y - 15, torso.Position.Z - 20) + currentPosition,
Vector3.new(torso.Position.X, torso.Position.Y - 15, torso.Position.Z - 20) + currentTarget)
end
end
end)

please use proper syntax itll make it easier to read.

To do that do this
```
urcodehere

```