Stopping (pausing) the script when cursor reaches the end of the screen

Interesting, really? I’m a noob who doesn’t know what he’s doing tbh. :slight_smile:

Basically, when I move the cursor the camera moves with it as well. As soon as the cursor will reach the any edge of the screen the camera should not move anymore. When the cursor is not at the edge of the screen, the camera continues to move.