Build System

Ok i got Transparent material working and im able to spawn it. But can someone tell me how to make it spawn where my cursor is and allow it to follow the mouse until left click is pressed?