cleaned up object movement and fixed a bug regarding local scripts