if mouse_check_button_released(mb_left) {
instance_create(mouse_x, mouse_y, object);
}
or for right mouse button
if mouse_check_button_released(mb_right) {
instance_create(mouse_x, mouse_y, object);
}
Put that in the step event of your object, not the one your creating, the one already on the screen.