2022-07-08 01:12:47 +03:00
|
|
|
--adds a StringValue that lists the client's version.
|
|
|
|
|
|
|
|
local this = {}
|
|
|
|
|
|
|
|
function this:Name()
|
2022-07-18 00:38:12 +03:00
|
|
|
return "Client Name and Script Printer"
|
2022-07-08 01:12:47 +03:00
|
|
|
end
|
|
|
|
|
|
|
|
function this:PreInit(Script, Client)
|
|
|
|
local ver = Instance.new("StringValue",game.Lighting)
|
|
|
|
ver.Name = "Version"
|
|
|
|
ver.Value = Client
|
2022-07-18 00:38:12 +03:00
|
|
|
|
|
|
|
local scr = Instance.new("StringValue",game.Lighting)
|
|
|
|
scr.Name = "ScriptLoaded"
|
|
|
|
scr.Value = Script
|
2022-07-08 01:12:47 +03:00
|
|
|
end
|
|
|
|
|
|
|
|
function AddModule(t)
|
2022-07-12 03:35:21 +03:00
|
|
|
print("AddonLoader: Adding " .. this:Name())
|
2022-07-08 01:12:47 +03:00
|
|
|
table.insert(t, this)
|
|
|
|
end
|
|
|
|
|
|
|
|
_G.CSScript_AddModule=AddModule
|