onStop Fires once before the script is unloaded. Usage function onStop() print("Goodbye, world!") end