This is a system for making it look and sound like the player character is breathing. Everything is customizable from the duration between breaths, the visual and audio effects, and so on.
Basically, this script is set to play a random sound effect for a breathe out every 2.5 - 3.5 seconds. Then, a second later, it will play a breathe in sound effect.
Every setting inside tells you what it does and is explained so you can easily personalize/customize how it works.
Audio slot 1 is for the breathe in sound effect, and then slots 2-5 are for breathe out sounds which are randomized. If you don't want a breathe in sound, just leave the first audio slot empty. If you want the breathe out sounds to be less frequent, just change the duration between them or leave some slots empty.
The sounds recommended are the playerloud: breathold for the breathe in sound (first slot) and then use playerloud: breathout and playerloud: breathoutfast for the rest. All of them are in GameGuru by default.
How to use:
1-Place an entity
2-Attach the player_breath_system.lua to the entity
3-Set the entity to always running yes and static no
4-(Optional) Customize the script - Every setting inside tells you what it does and is explained
I included a map file called breathsystemtesting so you can see how I set it up. The green barrel is the entity that I attached the script to.