Attach script to player object.