Module + Plugin Update
added
for index, module in game:GetService("CollectionService"):GetTagged("GlobalModuleScript") do module = require(module) :: any end
to the global module
and for the plugin a variable can now point to multiple global modules
local MyVariable
MyVariable = require(game.pathto.GlobalModule1)
MyVariable = require(game.pathto.GlobalModule2)
MyVariable = if true then require(game.pathto.GlobalModule3) else require(game.pathto.GlobalModule4)
in the example above MyVariable
will point to GlobalModule1
, GlobalModule2
, GlobalModule3
and GlobalModule4
this is useful as its now allows us to make ModuleScripts
that can run on both the server side and client side
its not safe to use
Global.Initialize()
or Global.Start()
inside modules but it is safe to use Global.Initialize(function() end)
or Global.Start(function() end)