mirror of
https://github.com/Novetus/Novetus_src.git
synced 2025-01-31 09:41:33 +02:00
fixed error
This commit is contained in:
parent
ee0cc6b67a
commit
946fa9df2d
@ -25,42 +25,49 @@ end
|
||||
function PreInit(Script, Client)
|
||||
for i,v in pairs(Modules) do
|
||||
pcall(function() v:PreInit(Script, Client) end)
|
||||
print(v:Name() .. " called PreInit")
|
||||
end
|
||||
end
|
||||
|
||||
function PostInit()
|
||||
for i,v in pairs(Modules) do
|
||||
pcall(function() v:PostInit() end)
|
||||
print(v:Name() .. " called PostInit")
|
||||
end
|
||||
end
|
||||
|
||||
function OnLoadCharacter(Player, Appearance)
|
||||
for i,v in pairs(Modules) do
|
||||
pcall(function() v:OnLoadCharacter(Player, Appearance) end)
|
||||
print(v:Name() .. " called OnLoadCharacter")
|
||||
end
|
||||
end
|
||||
|
||||
function OnPlayerAdded(Player)
|
||||
for i,v in pairs(Modules) do
|
||||
pcall(function() v:OnPlayerAdded(Player) end)
|
||||
print(v:Name() .. " called OnPlayerAdded")
|
||||
end
|
||||
end
|
||||
|
||||
function OnPlayerRemoved(Player)
|
||||
for i,v in pairs(Modules) do
|
||||
pcall(function() v:OnPlayerRemoved(Player) end)
|
||||
print(v:Name() .. " called OnPlayerRemoved")
|
||||
end
|
||||
end
|
||||
|
||||
function OnPlayerKicked(Player, Reason)
|
||||
for i,v in pairs(Modules) do
|
||||
pcall(function() v:OnPlayerKicked(Player, Reason) end)
|
||||
print(v:Name() .. " called OnPlayerKicked")
|
||||
end
|
||||
end
|
||||
|
||||
function OnPrePlayerKicked(Player, Reason)
|
||||
for i,v in pairs(Modules) do
|
||||
pcall(function() v:OnPrePlayerKicked(Player, Reason) end)
|
||||
print(v:Name() .. " called OnPrePlayerKicked")
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -51,7 +51,7 @@ end
|
||||
-- arguments: Player - Player getting a character loaded, Appearance - The object containing the appearance values
|
||||
-- notes: in play solo, you may have to respawn once to see any print outputs.
|
||||
function this:OnLoadCharacter(Player, Appearance)
|
||||
if (game.Lighting.SkipSecurity.Value == "temp" then
|
||||
if (game.Lighting:FindFirstChild("SkipSecurity") ~= nil and game.Lighting.SkipSecurity.Value == "temp") then
|
||||
game.Lighting.SkipSecurity:remove()
|
||||
end
|
||||
end
|
||||
|
@ -1,4 +1,4 @@
|
||||
1.3 Snapshot v22.8222.20490.2
|
||||
1.3 Snapshot v22.8222.20490.1
|
||||
Enhancements:
|
||||
- Added support for multiple addon scripts!
|
||||
- Thanks to BRAVONATCHO for the idea!
|
||||
|
Loading…
Reference in New Issue
Block a user