Novetus_src/defaultaddons/Utils.lua

30 lines
603 B
Lua
Raw Normal View History

2022-07-08 01:12:47 +03:00
local this = {}
function this:Name()
return "Novetus Utilities (Client Name Printer and Script Name Printer)"
end
function this:IsEnabled(Script, Client)
if (Script ~= "Studio") then
return true
else
return false
end
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