added extra check to noclip mode script.