Created
August 16, 2022 02:47
-
-
Save Sleitnick/3c5b5cf8622a4aa3f659f207ffb7c6ba to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- MyService.lua | |
local MyService = {} | |
function MyService:DoSomething() | |
print("Do something") | |
end | |
return MyService | |
---------------------------- | |
-- AnotherService.lua | |
local MyService = require(somewhere.MyService) | |
local AnotherService = {} | |
function AnotherService:OnStart() | |
MyService:DoSomething() | |
end | |
return MyService |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment