How to make camera like Vesteraria?

Use math.clamp to get a min and max distance.