How to make a object rotate like in Keep Talking and Nobody Explodes

So i want to rotate a object like in Keep Talking and Nobody Explodes but i have no idea how to do that.

Rotate Objects? parts? Gui’s? be more specific please

Here:

Great source

Another:

If parts, can get some knowledge from it

i want to rotate a object with the mouse like this

2 minutes searching and i found this