Press the mouse down, and move it around to rotate the object, or use WSAD to rotate it.
Credit to @uiopscratch327 for the tutorial on the script. All other is by me.