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