This is just a script that basically allows you to drag your camera with your mouse, it's just like the movement system in the block editor of scratch. This script/project also includes some extra features like moving the camera normally with arrow keys (Feel free to change them). Have fun! Also, you can copy the cam sprite and modify it to your needs in your projects.
lot cleaner scripts