I am currently trying to create blocks that can be moved with the cursor. My end goal is to have a similar moving system as "Metalworks Sandbox" or "Lumber Tycoon 2".

However, I do not know how to go about this. Could someone please make a guideline of how I go about creating a movable block system?

Below, I have linked a video of what I currently have come up with. /https://youtu.be/Hg28BN0A6ac