local target = workspace.Grass
local camera = workspace.CurrentCamera
camera.CameraType = Enum.CameraType.Scriptable
camera.CameraSubject = target
local angle = 100
local i = 0
 
while wait() do
    camera.CoordinateFrame = CFrame.new(target.Position)
							* CFrame.Angles(0, angle, 0)
							* CFrame.new(0, 100, 200)
    angle = angle + math.rad(1)
 
	i = i + 1
	if i > 500 then break end
end

It is rotating around, but after 5 seconds it dosent go back to the normal camera mode, any help?