Flying script error

I am trying to make it to where my body rotates when i look left or right or go up and make me loop like a plane

Like this video for example:

if Boost == true then		
			UserGameSettings.RotationType = Enum.RotationType.MovementRelative
			if UserGameSettings.RotationType == Enum.RotationType.MovementRelative then
				if AnimTrack then AnimTrack:Play() end
				UIS.MouseIconEnabled = false
				local mouseLocation = Vector3.new(Mouse.Hit.X, Char.Head.CFrame.Position.Y, Mouse.Hit.Z)	
				local offset = Char.UpperTorso.CFrame:ToObjectSpace(HRP.CFrame).Position
				local camOffset = Vector3.new(-offset.X, -offset.Y, -offset.Z)
				Direct = Char.Head.CFrame.LookVector + Direct 
				Camera.CameraType = Enum.CameraType.Custom
				TweenService:Create(Hum, TweenInfo.new(.055, Enum.EasingStyle.Sine, Enum.EasingDirection.In), {CameraOffset = camOffset}):Play()
				TweenService:Create(Camera,TweenInfo.new(.5),{FieldOfView = 60}):Play()
				TweenService:Create(waist2,TweenInfo.new(.2),{C0 = CFrame.Angles(math.rad(45),0,0)}):Play()		
				Camera.CFrame = Camera.CFrame:Lerp(CFrame.lookAt(Char.Part.Position,Mouse.Hit.Position),0.05)	
				HRP.CFrame = CFrame.new(Char.Head.Position, Mouse.Hit.Position)				
				prev_mousehit = Mouse.Hit.Position
			end

Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.