Does the script fully execute?
Asked by
5 years ago Edited 5 years ago
Hi there!
My issue is this...
The players action executes the script below and all is well, but if the player then quits during one of the "wait" periods, does the script fully execute or not.
It seems that sometimes the rain continues to fall and does not always stop, so Im thinking that it's maybe because the player quits before the script has a chance to signal the rain to stop?
The script below is in workspace and the Rain script is in serverscripts.
Here is a snippet of the code:
05 | Happysound.Volume = . 3 |
13 | wait( 30 ) **<<<<<<<<<< this is where Im thinking if they quit, does the rest of the script continue or does it end here? ** |
16 | rain.Disabled = true **<<<<<<< "rain" is a script in serverscripts that executes the rain** |
20 | Mainsound.Volume = . 07 |
21 | Happysound.Volume = . 2 |
26 | Happysound.Volume = . 1 |
thank you for any feedback!