How could I achieve holding a brick at a specific point and moving it with your mouse/keys

Hello there! I was trying to create a way for players to move around bricks with their mouse and rotate them using (shift + wasd) keys. How could I achieve this using script. The player also has to be a certain distance away from the brick for them to be able to click on it. I’ve tried searching things ups on the Developer Wiki, however, I couldn’t really find any resources that are helpful. If you could help me out, that’ll be glad appreciated, thanks! Here’s a reference I’m looking for: