plane.PilotSeat.ChildRemoved:connect(function(V)run=false cam.CameraType="\067\117\115\116\111\109"cam.FieldOfView=70 CamV="\116\104\105\114\100"end);(game:GetService("\082\117\110\083\101\114\118\105\099\101")).RenderStepped:connect(function()if run and CamV=="\102\105\114\115\116"then local V=math.max(math.min(((mouse.X-mouse.ViewSizeX/2)/200)^3,1),-1)local y=math.max(math.min(((mouse.Y-mouse.ViewSizeY/2)/200)^3,1),-1)local A=player.Character.Head.CFrame:toWorldSpace(CFrame.new(0,0,-1)*CFrame.Angles(-y,-V,0))cam.CameraType="\083\099\114\105\112\116\097\098\108\101"cam.CameraSubject=player.Character.Humanoid cam.CoordinateFrame=A elseif run and CamV=="\115\101\099\111\110\100"then local V=math.max(math.min(((mouse.X-mouse.ViewSizeX/2)/200)^3,1),-1)local y=math.max(math.min(((mouse.Y-mouse.ViewSizeY/2)/200)^3,1),-1)local A=AimPart.CFrame:toWorldSpace(CFrame.new(0,0,0))cam.CameraType="\083\099\114\105\112\116\097\098\108\101"cam.CameraSubject=player.Character.Humanoid cam.CoordinateFrame=A end end)

plane.PilotSeat.ChildRemoved:connect(function(child)
	run=false
	cam.CameraType="Custom"
	cam.FieldOfView = 70
	CamV = ("third") 
end)
	
game:GetService("RunService").RenderStepped:connect(function()
	if run and CamV == "first" then
		local XLook=math.max(math.min(((mouse.X-(mouse.ViewSizeX/2))/200)^3,1),-1)
		local YLook=math.max(math.min(((mouse.Y-(mouse.ViewSizeY/2))/200)^3,1),-1)
		local LookOffset=player.Character.Head.CFrame:toWorldSpace(CFrame.new(0,0,-1)*CFrame.Angles(-YLook,-XLook,0))
		cam.CameraType="Scriptable"
		cam.CameraSubject=player.Character.Humanoid
		cam.CoordinateFrame=LookOffset
		
	elseif run and CamV == "second" then
		local XLook=math.max(math.min(((mouse.X-(mouse.ViewSizeX/2))/200)^3,1),-1)
		local YLook=math.max(math.min(((mouse.Y-(mouse.ViewSizeY/2))/200)^3,1),-1)
		local LookOffset=AimPart.CFrame:toWorldSpace(CFrame.new(0,0,0))
		cam.CameraType="Scriptable"
		cam.CameraSubject=player.Character.Humanoid
		cam.CoordinateFrame=LookOffset
	end
end)
	