Skip to content

Instantly share code, notes, and snippets.

@Sleitnick
Created August 16, 2022 02:47
Show Gist options
  • Save Sleitnick/3c5b5cf8622a4aa3f659f207ffb7c6ba to your computer and use it in GitHub Desktop.
Save Sleitnick/3c5b5cf8622a4aa3f659f207ffb7c6ba to your computer and use it in GitHub Desktop.
-- 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