Skip to content

Instantly share code, notes, and snippets.

@Sleitnick
Last active August 16, 2022 02:48
Show Gist options
  • Save Sleitnick/d768e0c5c9b6143af2b26c10cb7ecead to your computer and use it in GitHub Desktop.
Save Sleitnick/d768e0c5c9b6143af2b26c10cb7ecead to your computer and use it in GitHub Desktop.
-- Load all ModuleScripts within 'MyModules' that end with "Service" & call their OnStart methods.
Loader.SpawnAll(
Loader.LoadDescendants(MyModules, Loader.MatchName("Service$")),
"OnStart"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment