Are you asking how it is written into specific peice of code? or just the how the script itself is written. If so its just stop();