Using repeat wait() generally should be avoided as it is inefficient and usually unnecessary because of better alternatives.
In this case,
repeat wait()
Camera.CameraType = Enum.CameraType.Scriptable
until Camera.CameraType == Enum.CameraType.Scriptable
would be exactly the same as
wait()
Camera.CameraType = Enum.CameraType.Scriptable
because the code waits, sets the camera type to scriptable, then checks if it is scriptable before continuing the code.