Added "Update()" API call. Add better error handling code.
This commit is contained in:
parent
4743d8e606
commit
c1c48bf2e6
|
|
@ -1,9 +1,11 @@
|
||||||
-- put script names here
|
-- put script names here
|
||||||
|
|
||||||
Addons = {"ClientNamePrinter", "ShadersCompatibility"}
|
Addons = {"ClientNamePrinter", "ShadersCompatibility", "ServerClock"}
|
||||||
|
|
||||||
-- DONT EDIT ANYTHING ELSE BELOW
|
-- DONT EDIT ANYTHING ELSE BELOW
|
||||||
|
|
||||||
|
local CoreScriptName = "AddonLoader"
|
||||||
|
|
||||||
Scripts = {}
|
Scripts = {}
|
||||||
|
|
||||||
function AddScript(name)
|
function AddScript(name)
|
||||||
|
|
@ -23,54 +25,88 @@ for i,v in pairs(Scripts) do
|
||||||
if (not success) then
|
if (not success) then
|
||||||
print("AddonLoader: Failed to load script: " .. response)
|
print("AddonLoader: Failed to load script: " .. response)
|
||||||
else
|
else
|
||||||
_G.CSScript_AddModule(Modules)
|
local success2, response2 = pcall(function() _G.CSScript_AddModule(Modules) end)
|
||||||
|
if (not success2) then
|
||||||
|
print("AddonLoader: Failed to add script module: " .. response2)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
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)
|
local success, response = pcall(function() v:PreInit(Script, Client) end)
|
||||||
|
if (not success and not string.find(response, CoreScriptName)) then
|
||||||
|
print("AddonLoader: Failed to call PreInit: " .. response)
|
||||||
|
end
|
||||||
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)
|
local success, response = pcall(function() v:PostInit() end)
|
||||||
|
if (not success and not string.find(response, CoreScriptName)) then
|
||||||
|
print("AddonLoader: Failed to call PostInit: " .. response)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
function Update()
|
||||||
|
for i,v in pairs(Modules) do
|
||||||
|
local success, response = pcall(function() v:Update() end)
|
||||||
|
if (not success and not string.find(response, CoreScriptName)) then
|
||||||
|
print("AddonLoader: Failed to call Update: " .. response)
|
||||||
|
end
|
||||||
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)
|
local success, response = pcall(function() v:OnLoadCharacter(Player, Appearance) end)
|
||||||
|
if (not success and not string.find(response, CoreScriptName)) then
|
||||||
|
print("AddonLoader: Failed to call OnLoadCharacter: " .. response)
|
||||||
|
end
|
||||||
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)
|
local success, response = pcall(function() v:OnPlayerAdded(Player) end)
|
||||||
|
if (not success and not string.find(response, CoreScriptName)) then
|
||||||
|
print("AddonLoader: Failed to call OnPlayerAdded: " .. response)
|
||||||
|
end
|
||||||
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)
|
local success, response = pcall(function() v:OnPlayerRemoved(Player) end)
|
||||||
|
if (not success and not string.find(response, CoreScriptName)) then
|
||||||
|
print("AddonLoader: Failed to call OnPlayerRemoved: " .. response)
|
||||||
|
end
|
||||||
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)
|
local success, response = pcall(function() v:OnPlayerKicked(Player, Reason) end)
|
||||||
|
if (not success and not string.find(response, CoreScriptName)) then
|
||||||
|
print("AddonLoader: Failed to call OnPlayerKicked: " .. response)
|
||||||
|
end
|
||||||
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)
|
local success, response = pcall(function() v:OnPrePlayerKicked(Player, Reason) end)
|
||||||
|
if (not success and not string.find(response, CoreScriptName)) then
|
||||||
|
print("AddonLoader: Failed to call OnPrePlayerKicked: " .. response)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
_G.CSScript_PreInit=PreInit
|
_G.CSScript_PreInit=PreInit
|
||||||
_G.CSScript_PostInit=PostInit
|
_G.CSScript_PostInit=PostInit
|
||||||
|
_G.CSScript_Update=Update
|
||||||
_G.CSScript_OnLoadCharacter=OnLoadCharacter
|
_G.CSScript_OnLoadCharacter=OnLoadCharacter
|
||||||
_G.CSScript_OnPlayerAdded=OnPlayerAdded
|
_G.CSScript_OnPlayerAdded=OnPlayerAdded
|
||||||
_G.CSScript_OnPlayerRemoved=OnPlayerRemoved
|
_G.CSScript_OnPlayerRemoved=OnPlayerRemoved
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,11 @@ end
|
||||||
function this:PostInit()
|
function this:PostInit()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- executes every 0.1 seconds. (server, solo, studio)
|
||||||
|
-- arguments: none
|
||||||
|
function this:Update()
|
||||||
|
end
|
||||||
|
|
||||||
-- executes after a character loads (server, solo, studio)
|
-- executes after a character loads (server, solo, studio)
|
||||||
-- 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.
|
||||||
|
|
@ -43,7 +48,7 @@ end
|
||||||
-- DO NOT REMOVE THIS. this is required to load this addon into the game.
|
-- DO NOT REMOVE THIS. this is required to load this addon into the game.
|
||||||
|
|
||||||
function AddModule(t)
|
function AddModule(t)
|
||||||
print("AddonLoader: Adding " .. v:Name())
|
print("AddonLoader: Adding " .. this:Name())
|
||||||
table.insert(t, this)
|
table.insert(t, this)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,35 @@
|
||||||
|
local this = {}
|
||||||
|
local ScriptName = "N/A"
|
||||||
|
|
||||||
|
function this:Name()
|
||||||
|
return "Server Clock (Time Since Started)"
|
||||||
|
end
|
||||||
|
|
||||||
|
function this:PreInit(Script, Client)
|
||||||
|
ScriptName = Script
|
||||||
|
end
|
||||||
|
|
||||||
|
function this:PostInit()
|
||||||
|
if (ScriptName == "Server") then
|
||||||
|
local ver = Instance.new("IntValue",game.Lighting)
|
||||||
|
ver.Name = "ServerTicks"
|
||||||
|
ver.Value = 0
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
-- executes every 0.1 seconds. (server, solo, studio)
|
||||||
|
-- arguments: none
|
||||||
|
function this:Update()
|
||||||
|
if (ScriptName == "Server") then
|
||||||
|
game.Lighting.ServerTicks.Value = game.Lighting.ServerTicks.Value + 1
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
-- DO NOT REMOVE THIS. this is required to load this addon into the game.
|
||||||
|
|
||||||
|
function AddModule(t)
|
||||||
|
print("AddonLoader: Adding " .. this:Name())
|
||||||
|
table.insert(t, this)
|
||||||
|
end
|
||||||
|
|
||||||
|
_G.CSScript_AddModule=AddModule
|
||||||
|
|
@ -144,5 +144,6 @@ XCOPY "%cd%\Novetus\README-AND-CREDITS.TXT" "%dest%" /y
|
||||||
XCOPY "%cd%\Novetus\addons\Addon_Template.lua" "%dest%" /y
|
XCOPY "%cd%\Novetus\addons\Addon_Template.lua" "%dest%" /y
|
||||||
XCOPY "%cd%\Novetus\addons\ClientNamePrinter.lua" "%dest%" /y
|
XCOPY "%cd%\Novetus\addons\ClientNamePrinter.lua" "%dest%" /y
|
||||||
XCOPY "%cd%\Novetus\addons\ShadersCompatibility.lua" "%dest%" /y
|
XCOPY "%cd%\Novetus\addons\ShadersCompatibility.lua" "%dest%" /y
|
||||||
|
XCOPY "%cd%\Novetus\addons\ServerClock.lua" "%dest%" /y
|
||||||
XCOPY "%cd%\Novetus\addons\core\AddonLoader.lua" "%dest%" /y
|
XCOPY "%cd%\Novetus\addons\core\AddonLoader.lua" "%dest%" /y
|
||||||
if %debug%==1 pause
|
if %debug%==1 pause
|
||||||
|
|
@ -326,6 +326,12 @@ function CSServer(Port,PlayerLimit,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Noti
|
||||||
Server.IncommingConnection:connect(IncommingConnection)
|
Server.IncommingConnection:connect(IncommingConnection)
|
||||||
pcall(function() game.Close:connect(function() Server:stop() end) end)
|
pcall(function() game.Close:connect(function() Server:stop() end) end)
|
||||||
pcall(function() _G.CSScript_PostInit() end)
|
pcall(function() _G.CSScript_PostInit() end)
|
||||||
|
coroutine.resume(coroutine.create(function()
|
||||||
|
while true do
|
||||||
|
wait(0.1)
|
||||||
|
pcall(function() _G.CSScript_Update() end)
|
||||||
|
end
|
||||||
|
end))
|
||||||
end
|
end
|
||||||
|
|
||||||
function CSConnect(UserID,ServerIP,ServerPort,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,IconType,ItemID,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Tripcode,Ticket)
|
function CSConnect(UserID,ServerIP,ServerPort,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,IconType,ItemID,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Tripcode,Ticket)
|
||||||
|
|
@ -417,6 +423,12 @@ function CSSolo(UserID,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,
|
||||||
LoadCharacterNew(newWaitForChild(plr,"Appearance"),plr.Character,false)
|
LoadCharacterNew(newWaitForChild(plr,"Appearance"),plr.Character,false)
|
||||||
game:service("Visit"):setUploadUrl("")
|
game:service("Visit"):setUploadUrl("")
|
||||||
pcall(function() _G.CSScript_PostInit() end)
|
pcall(function() _G.CSScript_PostInit() end)
|
||||||
|
coroutine.resume(coroutine.create(function()
|
||||||
|
while true do
|
||||||
|
wait(0.1)
|
||||||
|
pcall(function() _G.CSScript_Update() end)
|
||||||
|
end
|
||||||
|
end))
|
||||||
while true do
|
while true do
|
||||||
wait(0.001)
|
wait(0.001)
|
||||||
if (game.Lighting:findFirstChild("DisableRespawns") == nil) then
|
if (game.Lighting:findFirstChild("DisableRespawns") == nil) then
|
||||||
|
|
@ -439,6 +451,12 @@ function CSStudio()
|
||||||
pcall(function() dofile("rbxasset://..//..//..//addons//core//AddonLoader.lua") end)
|
pcall(function() dofile("rbxasset://..//..//..//addons//core//AddonLoader.lua") end)
|
||||||
pcall(function() _G.CSScript_PreInit("Studio", "2006S-Shaders") end)
|
pcall(function() _G.CSScript_PreInit("Studio", "2006S-Shaders") end)
|
||||||
pcall(function() _G.CSScript_PostInit() end)
|
pcall(function() _G.CSScript_PostInit() end)
|
||||||
|
coroutine.resume(coroutine.create(function()
|
||||||
|
while true do
|
||||||
|
wait(0.1)
|
||||||
|
pcall(function() _G.CSScript_Update() end)
|
||||||
|
end
|
||||||
|
end))
|
||||||
end
|
end
|
||||||
|
|
||||||
_G.CSServer=CSServer
|
_G.CSServer=CSServer
|
||||||
|
|
|
||||||
|
|
@ -326,6 +326,12 @@ function CSServer(Port,PlayerLimit,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Noti
|
||||||
Server.IncommingConnection:connect(IncommingConnection)
|
Server.IncommingConnection:connect(IncommingConnection)
|
||||||
pcall(function() game.Close:connect(function() Server:stop() end) end)
|
pcall(function() game.Close:connect(function() Server:stop() end) end)
|
||||||
pcall(function() _G.CSScript_PostInit() end)
|
pcall(function() _G.CSScript_PostInit() end)
|
||||||
|
coroutine.resume(coroutine.create(function()
|
||||||
|
while true do
|
||||||
|
wait(0.1)
|
||||||
|
pcall(function() _G.CSScript_Update() end)
|
||||||
|
end
|
||||||
|
end))
|
||||||
end
|
end
|
||||||
|
|
||||||
function CSConnect(UserID,ServerIP,ServerPort,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,IconType,ItemID,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Tripcode,Ticket)
|
function CSConnect(UserID,ServerIP,ServerPort,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,IconType,ItemID,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Tripcode,Ticket)
|
||||||
|
|
@ -417,6 +423,12 @@ function CSSolo(UserID,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,
|
||||||
LoadCharacterNew(newWaitForChild(plr,"Appearance"),plr.Character,false)
|
LoadCharacterNew(newWaitForChild(plr,"Appearance"),plr.Character,false)
|
||||||
game:service("Visit"):setUploadUrl("")
|
game:service("Visit"):setUploadUrl("")
|
||||||
pcall(function() _G.CSScript_PostInit() end)
|
pcall(function() _G.CSScript_PostInit() end)
|
||||||
|
coroutine.resume(coroutine.create(function()
|
||||||
|
while true do
|
||||||
|
wait(0.1)
|
||||||
|
pcall(function() _G.CSScript_Update() end)
|
||||||
|
end
|
||||||
|
end))
|
||||||
while true do
|
while true do
|
||||||
wait(0.001)
|
wait(0.001)
|
||||||
if (game.Lighting:findFirstChild("DisableRespawns") == nil) then
|
if (game.Lighting:findFirstChild("DisableRespawns") == nil) then
|
||||||
|
|
@ -439,6 +451,12 @@ function CSStudio()
|
||||||
pcall(function() dofile("rbxasset://..//..//..//addons//core//AddonLoader.lua") end)
|
pcall(function() dofile("rbxasset://..//..//..//addons//core//AddonLoader.lua") end)
|
||||||
pcall(function() _G.CSScript_PreInit("Studio", "2006S") end)
|
pcall(function() _G.CSScript_PreInit("Studio", "2006S") end)
|
||||||
pcall(function() _G.CSScript_PostInit() end)
|
pcall(function() _G.CSScript_PostInit() end)
|
||||||
|
coroutine.resume(coroutine.create(function()
|
||||||
|
while true do
|
||||||
|
wait(0.1)
|
||||||
|
pcall(function() _G.CSScript_Update() end)
|
||||||
|
end
|
||||||
|
end))
|
||||||
end
|
end
|
||||||
|
|
||||||
_G.CSServer=CSServer
|
_G.CSServer=CSServer
|
||||||
|
|
|
||||||
|
|
@ -388,6 +388,12 @@ function CSServer(Port,PlayerLimit,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Noti
|
||||||
Server.IncommingConnection:connect(IncommingConnection)
|
Server.IncommingConnection:connect(IncommingConnection)
|
||||||
pcall(function() game.Close:connect(function() Server:stop() end) end)
|
pcall(function() game.Close:connect(function() Server:stop() end) end)
|
||||||
pcall(function() _G.CSScript_PostInit() end)
|
pcall(function() _G.CSScript_PostInit() end)
|
||||||
|
coroutine.resume(coroutine.create(function()
|
||||||
|
while true do
|
||||||
|
wait(0.1)
|
||||||
|
pcall(function() _G.CSScript_Update() end)
|
||||||
|
end
|
||||||
|
end))
|
||||||
end
|
end
|
||||||
|
|
||||||
function CSConnect(UserID,ServerIP,ServerPort,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,IconType,ItemID,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Tripcode,VerifiedScripts,Ticket)
|
function CSConnect(UserID,ServerIP,ServerPort,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,IconType,ItemID,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Tripcode,VerifiedScripts,Ticket)
|
||||||
|
|
@ -475,6 +481,12 @@ function CSSolo(UserID,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,
|
||||||
LoadCharacterNew(newWaitForChild(plr,"Appearance"),plr.Character,false)
|
LoadCharacterNew(newWaitForChild(plr,"Appearance"),plr.Character,false)
|
||||||
game:service("Visit"):setUploadUrl("")
|
game:service("Visit"):setUploadUrl("")
|
||||||
pcall(function() _G.CSScript_PostInit() end)
|
pcall(function() _G.CSScript_PostInit() end)
|
||||||
|
coroutine.resume(coroutine.create(function()
|
||||||
|
while true do
|
||||||
|
wait(0.1)
|
||||||
|
pcall(function() _G.CSScript_Update() end)
|
||||||
|
end
|
||||||
|
end))
|
||||||
while true do
|
while true do
|
||||||
wait(0.001)
|
wait(0.001)
|
||||||
if (game.Lighting:findFirstChild("DisableRespawns") == nil) then
|
if (game.Lighting:findFirstChild("DisableRespawns") == nil) then
|
||||||
|
|
@ -497,6 +509,12 @@ function CSStudio()
|
||||||
pcall(function() dofile("rbxasset://..//..//..//addons//core//AddonLoader.lua") end)
|
pcall(function() dofile("rbxasset://..//..//..//addons//core//AddonLoader.lua") end)
|
||||||
pcall(function() _G.CSScript_PreInit("Studio", "2007E-Shaders") end)
|
pcall(function() _G.CSScript_PreInit("Studio", "2007E-Shaders") end)
|
||||||
pcall(function() _G.CSScript_PostInit() end)
|
pcall(function() _G.CSScript_PostInit() end)
|
||||||
|
coroutine.resume(coroutine.create(function()
|
||||||
|
while true do
|
||||||
|
wait(0.1)
|
||||||
|
pcall(function() _G.CSScript_Update() end)
|
||||||
|
end
|
||||||
|
end))
|
||||||
end
|
end
|
||||||
|
|
||||||
_G.CSServer=CSServer
|
_G.CSServer=CSServer
|
||||||
|
|
|
||||||
|
|
@ -388,6 +388,12 @@ function CSServer(Port,PlayerLimit,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Noti
|
||||||
Server.IncommingConnection:connect(IncommingConnection)
|
Server.IncommingConnection:connect(IncommingConnection)
|
||||||
pcall(function() game.Close:connect(function() Server:stop() end) end)
|
pcall(function() game.Close:connect(function() Server:stop() end) end)
|
||||||
pcall(function() _G.CSScript_PostInit() end)
|
pcall(function() _G.CSScript_PostInit() end)
|
||||||
|
coroutine.resume(coroutine.create(function()
|
||||||
|
while true do
|
||||||
|
wait(0.1)
|
||||||
|
pcall(function() _G.CSScript_Update() end)
|
||||||
|
end
|
||||||
|
end))
|
||||||
end
|
end
|
||||||
|
|
||||||
function CSConnect(UserID,ServerIP,ServerPort,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,IconType,ItemID,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Tripcode,VerifiedScripts,Ticket)
|
function CSConnect(UserID,ServerIP,ServerPort,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,IconType,ItemID,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Tripcode,VerifiedScripts,Ticket)
|
||||||
|
|
@ -475,6 +481,12 @@ function CSSolo(UserID,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,
|
||||||
LoadCharacterNew(newWaitForChild(plr,"Appearance"),plr.Character,false)
|
LoadCharacterNew(newWaitForChild(plr,"Appearance"),plr.Character,false)
|
||||||
game:service("Visit"):setUploadUrl("")
|
game:service("Visit"):setUploadUrl("")
|
||||||
pcall(function() _G.CSScript_PostInit() end)
|
pcall(function() _G.CSScript_PostInit() end)
|
||||||
|
coroutine.resume(coroutine.create(function()
|
||||||
|
while true do
|
||||||
|
wait(0.1)
|
||||||
|
pcall(function() _G.CSScript_Update() end)
|
||||||
|
end
|
||||||
|
end))
|
||||||
while true do
|
while true do
|
||||||
wait(0.001)
|
wait(0.001)
|
||||||
if (game.Lighting:findFirstChild("DisableRespawns") == nil) then
|
if (game.Lighting:findFirstChild("DisableRespawns") == nil) then
|
||||||
|
|
@ -497,6 +509,12 @@ function CSStudio()
|
||||||
pcall(function() dofile("rbxasset://..//..//..//addons//core//AddonLoader.lua") end)
|
pcall(function() dofile("rbxasset://..//..//..//addons//core//AddonLoader.lua") end)
|
||||||
pcall(function() _G.CSScript_PreInit("Studio", "2007E") end)
|
pcall(function() _G.CSScript_PreInit("Studio", "2007E") end)
|
||||||
pcall(function() _G.CSScript_PostInit() end)
|
pcall(function() _G.CSScript_PostInit() end)
|
||||||
|
coroutine.resume(coroutine.create(function()
|
||||||
|
while true do
|
||||||
|
wait(0.1)
|
||||||
|
pcall(function() _G.CSScript_Update() end)
|
||||||
|
end
|
||||||
|
end))
|
||||||
end
|
end
|
||||||
|
|
||||||
_G.CSServer=CSServer
|
_G.CSServer=CSServer
|
||||||
|
|
|
||||||
|
|
@ -448,6 +448,12 @@ function CSServer(Port,PlayerLimit,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Noti
|
||||||
Server.IncommingConnection:connect(IncommingConnection)
|
Server.IncommingConnection:connect(IncommingConnection)
|
||||||
pcall(function() game.Close:connect(function() Server:stop() end) end)
|
pcall(function() game.Close:connect(function() Server:stop() end) end)
|
||||||
pcall(function() _G.CSScript_PostInit() end)
|
pcall(function() _G.CSScript_PostInit() end)
|
||||||
|
coroutine.resume(coroutine.create(function()
|
||||||
|
while true do
|
||||||
|
wait(0.1)
|
||||||
|
pcall(function() _G.CSScript_Update() end)
|
||||||
|
end
|
||||||
|
end))
|
||||||
end
|
end
|
||||||
|
|
||||||
function CSConnect(UserID,ServerIP,ServerPort,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,IconType,ItemID,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Tripcode,Ticket)
|
function CSConnect(UserID,ServerIP,ServerPort,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,IconType,ItemID,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Tripcode,Ticket)
|
||||||
|
|
@ -533,6 +539,12 @@ function CSSolo(UserID,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,
|
||||||
LoadCharacterNew(newWaitForChild(plr,"Appearance"),plr.Character,false)
|
LoadCharacterNew(newWaitForChild(plr,"Appearance"),plr.Character,false)
|
||||||
game:GetService("Visit"):SetUploadUrl("")
|
game:GetService("Visit"):SetUploadUrl("")
|
||||||
pcall(function() _G.CSScript_PostInit() end)
|
pcall(function() _G.CSScript_PostInit() end)
|
||||||
|
coroutine.resume(coroutine.create(function()
|
||||||
|
while true do
|
||||||
|
wait(0.1)
|
||||||
|
pcall(function() _G.CSScript_Update() end)
|
||||||
|
end
|
||||||
|
end))
|
||||||
while true do
|
while true do
|
||||||
wait(0.001)
|
wait(0.001)
|
||||||
if (game.Lighting:findFirstChild("DisableRespawns") == nil) then
|
if (game.Lighting:findFirstChild("DisableRespawns") == nil) then
|
||||||
|
|
@ -555,6 +567,12 @@ function CSStudio()
|
||||||
pcall(function() dofile("rbxasset://..//..//..//addons//core//AddonLoader.lua") end)
|
pcall(function() dofile("rbxasset://..//..//..//addons//core//AddonLoader.lua") end)
|
||||||
pcall(function() _G.CSScript_PreInit("Studio", "2007M-Shaders") end)
|
pcall(function() _G.CSScript_PreInit("Studio", "2007M-Shaders") end)
|
||||||
pcall(function() _G.CSScript_PostInit() end)
|
pcall(function() _G.CSScript_PostInit() end)
|
||||||
|
coroutine.resume(coroutine.create(function()
|
||||||
|
while true do
|
||||||
|
wait(0.1)
|
||||||
|
pcall(function() _G.CSScript_Update() end)
|
||||||
|
end
|
||||||
|
end))
|
||||||
end
|
end
|
||||||
|
|
||||||
_G.CSServer=CSServer
|
_G.CSServer=CSServer
|
||||||
|
|
|
||||||
|
|
@ -448,6 +448,12 @@ function CSServer(Port,PlayerLimit,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Noti
|
||||||
Server.IncommingConnection:connect(IncommingConnection)
|
Server.IncommingConnection:connect(IncommingConnection)
|
||||||
pcall(function() game.Close:connect(function() Server:stop() end) end)
|
pcall(function() game.Close:connect(function() Server:stop() end) end)
|
||||||
pcall(function() _G.CSScript_PostInit() end)
|
pcall(function() _G.CSScript_PostInit() end)
|
||||||
|
coroutine.resume(coroutine.create(function()
|
||||||
|
while true do
|
||||||
|
wait(0.1)
|
||||||
|
pcall(function() _G.CSScript_Update() end)
|
||||||
|
end
|
||||||
|
end))
|
||||||
end
|
end
|
||||||
|
|
||||||
function CSConnect(UserID,ServerIP,ServerPort,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,IconType,ItemID,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Tripcode,Ticket)
|
function CSConnect(UserID,ServerIP,ServerPort,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,IconType,ItemID,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Tripcode,Ticket)
|
||||||
|
|
@ -533,6 +539,12 @@ function CSSolo(UserID,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,
|
||||||
LoadCharacterNew(newWaitForChild(plr,"Appearance"),plr.Character,false)
|
LoadCharacterNew(newWaitForChild(plr,"Appearance"),plr.Character,false)
|
||||||
game:GetService("Visit"):SetUploadUrl("")
|
game:GetService("Visit"):SetUploadUrl("")
|
||||||
pcall(function() _G.CSScript_PostInit() end)
|
pcall(function() _G.CSScript_PostInit() end)
|
||||||
|
coroutine.resume(coroutine.create(function()
|
||||||
|
while true do
|
||||||
|
wait(0.1)
|
||||||
|
pcall(function() _G.CSScript_Update() end)
|
||||||
|
end
|
||||||
|
end))
|
||||||
while true do
|
while true do
|
||||||
wait(0.001)
|
wait(0.001)
|
||||||
if (game.Lighting:findFirstChild("DisableRespawns") == nil) then
|
if (game.Lighting:findFirstChild("DisableRespawns") == nil) then
|
||||||
|
|
@ -555,6 +567,12 @@ function CSStudio()
|
||||||
pcall(function() dofile("rbxasset://..//..//..//addons//core//AddonLoader.lua") end)
|
pcall(function() dofile("rbxasset://..//..//..//addons//core//AddonLoader.lua") end)
|
||||||
pcall(function() _G.CSScript_PreInit("Studio", "2007M") end)
|
pcall(function() _G.CSScript_PreInit("Studio", "2007M") end)
|
||||||
pcall(function() _G.CSScript_PostInit() end)
|
pcall(function() _G.CSScript_PostInit() end)
|
||||||
|
coroutine.resume(coroutine.create(function()
|
||||||
|
while true do
|
||||||
|
wait(0.1)
|
||||||
|
pcall(function() _G.CSScript_Update() end)
|
||||||
|
end
|
||||||
|
end))
|
||||||
end
|
end
|
||||||
|
|
||||||
_G.CSServer=CSServer
|
_G.CSServer=CSServer
|
||||||
|
|
|
||||||
|
|
@ -564,6 +564,12 @@ function CSServer(Port,PlayerLimit,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Noti
|
||||||
Server.IncommingConnection:connect(IncommingConnection)
|
Server.IncommingConnection:connect(IncommingConnection)
|
||||||
pcall(function() game.Close:connect(function() Server:Stop() end) end)
|
pcall(function() game.Close:connect(function() Server:Stop() end) end)
|
||||||
pcall(function() _G.CSScript_PostInit() end)
|
pcall(function() _G.CSScript_PostInit() end)
|
||||||
|
coroutine.resume(coroutine.create(function()
|
||||||
|
while true do
|
||||||
|
wait(0.1)
|
||||||
|
pcall(function() _G.CSScript_Update() end)
|
||||||
|
end
|
||||||
|
end))
|
||||||
end
|
end
|
||||||
|
|
||||||
function CSConnect(UserID,ServerIP,ServerPort,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,IconType,ItemID,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Tripcode,Ticket)
|
function CSConnect(UserID,ServerIP,ServerPort,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,IconType,ItemID,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Tripcode,Ticket)
|
||||||
|
|
@ -652,6 +658,12 @@ function CSSolo(UserID,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,
|
||||||
LoadCharacterNew(newWaitForChild(plr,"Appearance"),plr.Character,false)
|
LoadCharacterNew(newWaitForChild(plr,"Appearance"),plr.Character,false)
|
||||||
game:GetService("Visit"):SetUploadUrl("")
|
game:GetService("Visit"):SetUploadUrl("")
|
||||||
pcall(function() _G.CSScript_PostInit() end)
|
pcall(function() _G.CSScript_PostInit() end)
|
||||||
|
coroutine.resume(coroutine.create(function()
|
||||||
|
while true do
|
||||||
|
wait(0.1)
|
||||||
|
pcall(function() _G.CSScript_Update() end)
|
||||||
|
end
|
||||||
|
end))
|
||||||
while true do
|
while true do
|
||||||
wait(0.001)
|
wait(0.001)
|
||||||
if (game.Lighting:findFirstChild("DisableRespawns") == nil) then
|
if (game.Lighting:findFirstChild("DisableRespawns") == nil) then
|
||||||
|
|
@ -674,6 +686,12 @@ function CSStudio()
|
||||||
pcall(function() dofile("rbxasset://..//..//..//addons//core//AddonLoader.lua") end)
|
pcall(function() dofile("rbxasset://..//..//..//addons//core//AddonLoader.lua") end)
|
||||||
pcall(function() _G.CSScript_PreInit("Studio", "2008M") end)
|
pcall(function() _G.CSScript_PreInit("Studio", "2008M") end)
|
||||||
pcall(function() _G.CSScript_PostInit() end)
|
pcall(function() _G.CSScript_PostInit() end)
|
||||||
|
coroutine.resume(coroutine.create(function()
|
||||||
|
while true do
|
||||||
|
wait(0.1)
|
||||||
|
pcall(function() _G.CSScript_Update() end)
|
||||||
|
end
|
||||||
|
end))
|
||||||
end
|
end
|
||||||
|
|
||||||
_G.CSServer=CSServer
|
_G.CSServer=CSServer
|
||||||
|
|
|
||||||
|
|
@ -645,6 +645,12 @@ function CSServer(Port,PlayerLimit,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Noti
|
||||||
Server.IncommingConnection:connect(IncommingConnection)
|
Server.IncommingConnection:connect(IncommingConnection)
|
||||||
pcall(function() game.Close:connect(function() Server:Stop() end) end)
|
pcall(function() game.Close:connect(function() Server:Stop() end) end)
|
||||||
pcall(function() _G.CSScript_PostInit() end)
|
pcall(function() _G.CSScript_PostInit() end)
|
||||||
|
coroutine.resume(coroutine.create(function()
|
||||||
|
while true do
|
||||||
|
wait(0.1)
|
||||||
|
pcall(function() _G.CSScript_Update() end)
|
||||||
|
end
|
||||||
|
end))
|
||||||
end
|
end
|
||||||
|
|
||||||
function CSConnect(UserID,ServerIP,ServerPort,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,IconType,ItemID,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Tripcode,Ticket)
|
function CSConnect(UserID,ServerIP,ServerPort,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,IconType,ItemID,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Tripcode,Ticket)
|
||||||
|
|
@ -746,6 +752,12 @@ function CSSolo(UserID,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,
|
||||||
LoadCharacterNew(newWaitForChild(plr,"Appearance"),plr.Character,false)
|
LoadCharacterNew(newWaitForChild(plr,"Appearance"),plr.Character,false)
|
||||||
game:GetService("Visit"):SetUploadUrl("")
|
game:GetService("Visit"):SetUploadUrl("")
|
||||||
pcall(function() _G.CSScript_PostInit() end)
|
pcall(function() _G.CSScript_PostInit() end)
|
||||||
|
coroutine.resume(coroutine.create(function()
|
||||||
|
while true do
|
||||||
|
wait(0.1)
|
||||||
|
pcall(function() _G.CSScript_Update() end)
|
||||||
|
end
|
||||||
|
end))
|
||||||
while true do
|
while true do
|
||||||
wait(0.001)
|
wait(0.001)
|
||||||
if (game.Lighting:findFirstChild("DisableRespawns") == nil) then
|
if (game.Lighting:findFirstChild("DisableRespawns") == nil) then
|
||||||
|
|
@ -768,6 +780,12 @@ function CSStudio()
|
||||||
pcall(function() dofile("rbxasset://..//..//..//addons//core//AddonLoader.lua") end)
|
pcall(function() dofile("rbxasset://..//..//..//addons//core//AddonLoader.lua") end)
|
||||||
pcall(function() _G.CSScript_PreInit("Studio", "2009E-HD") end)
|
pcall(function() _G.CSScript_PreInit("Studio", "2009E-HD") end)
|
||||||
pcall(function() _G.CSScript_PostInit() end)
|
pcall(function() _G.CSScript_PostInit() end)
|
||||||
|
coroutine.resume(coroutine.create(function()
|
||||||
|
while true do
|
||||||
|
wait(0.1)
|
||||||
|
pcall(function() _G.CSScript_Update() end)
|
||||||
|
end
|
||||||
|
end))
|
||||||
end
|
end
|
||||||
|
|
||||||
_G.CSServer=CSServer
|
_G.CSServer=CSServer
|
||||||
|
|
|
||||||
|
|
@ -645,6 +645,12 @@ function CSServer(Port,PlayerLimit,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Noti
|
||||||
Server.IncommingConnection:connect(IncommingConnection)
|
Server.IncommingConnection:connect(IncommingConnection)
|
||||||
pcall(function() game.Close:connect(function() Server:Stop() end) end)
|
pcall(function() game.Close:connect(function() Server:Stop() end) end)
|
||||||
pcall(function() _G.CSScript_PostInit() end)
|
pcall(function() _G.CSScript_PostInit() end)
|
||||||
|
coroutine.resume(coroutine.create(function()
|
||||||
|
while true do
|
||||||
|
wait(0.1)
|
||||||
|
pcall(function() _G.CSScript_Update() end)
|
||||||
|
end
|
||||||
|
end))
|
||||||
end
|
end
|
||||||
|
|
||||||
function CSConnect(UserID,ServerIP,ServerPort,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,IconType,ItemID,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Tripcode,Ticket)
|
function CSConnect(UserID,ServerIP,ServerPort,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,IconType,ItemID,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Tripcode,Ticket)
|
||||||
|
|
@ -746,6 +752,12 @@ function CSSolo(UserID,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,
|
||||||
LoadCharacterNew(newWaitForChild(plr,"Appearance"),plr.Character,false)
|
LoadCharacterNew(newWaitForChild(plr,"Appearance"),plr.Character,false)
|
||||||
game:GetService("Visit"):SetUploadUrl("")
|
game:GetService("Visit"):SetUploadUrl("")
|
||||||
pcall(function() _G.CSScript_PostInit() end)
|
pcall(function() _G.CSScript_PostInit() end)
|
||||||
|
coroutine.resume(coroutine.create(function()
|
||||||
|
while true do
|
||||||
|
wait(0.1)
|
||||||
|
pcall(function() _G.CSScript_Update() end)
|
||||||
|
end
|
||||||
|
end))
|
||||||
while true do
|
while true do
|
||||||
wait(0.001)
|
wait(0.001)
|
||||||
if (game.Lighting:findFirstChild("DisableRespawns") == nil) then
|
if (game.Lighting:findFirstChild("DisableRespawns") == nil) then
|
||||||
|
|
@ -768,6 +780,12 @@ function CSStudio()
|
||||||
pcall(function() dofile("rbxasset://..//..//..//addons//core//AddonLoader.lua") end)
|
pcall(function() dofile("rbxasset://..//..//..//addons//core//AddonLoader.lua") end)
|
||||||
pcall(function() _G.CSScript_PreInit("Studio", "2009E") end)
|
pcall(function() _G.CSScript_PreInit("Studio", "2009E") end)
|
||||||
pcall(function() _G.CSScript_PostInit() end)
|
pcall(function() _G.CSScript_PostInit() end)
|
||||||
|
coroutine.resume(coroutine.create(function()
|
||||||
|
while true do
|
||||||
|
wait(0.1)
|
||||||
|
pcall(function() _G.CSScript_Update() end)
|
||||||
|
end
|
||||||
|
end))
|
||||||
end
|
end
|
||||||
|
|
||||||
_G.CSServer=CSServer
|
_G.CSServer=CSServer
|
||||||
|
|
|
||||||
|
|
@ -648,6 +648,12 @@ function CSServer(Port,PlayerLimit,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Noti
|
||||||
NetworkServer.IncommingConnection:connect(IncommingConnection)
|
NetworkServer.IncommingConnection:connect(IncommingConnection)
|
||||||
pcall(function() game.Close:connect(function() NetworkServer:Stop() end) end)
|
pcall(function() game.Close:connect(function() NetworkServer:Stop() end) end)
|
||||||
pcall(function() _G.CSScript_PostInit() end)
|
pcall(function() _G.CSScript_PostInit() end)
|
||||||
|
coroutine.resume(coroutine.create(function()
|
||||||
|
while true do
|
||||||
|
wait(0.1)
|
||||||
|
pcall(function() _G.CSScript_Update() end)
|
||||||
|
end
|
||||||
|
end))
|
||||||
end
|
end
|
||||||
|
|
||||||
function CSConnect(UserID,ServerIP,ServerPort,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,IconType,ItemID,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Tripcode,Ticket)
|
function CSConnect(UserID,ServerIP,ServerPort,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,IconType,ItemID,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Tripcode,Ticket)
|
||||||
|
|
@ -771,6 +777,12 @@ function CSSolo(UserID,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,
|
||||||
game.StarterGui.Health:clone().Parent = plr.PlayerGui
|
game.StarterGui.Health:clone().Parent = plr.PlayerGui
|
||||||
game:GetService("Visit"):SetUploadUrl("")
|
game:GetService("Visit"):SetUploadUrl("")
|
||||||
pcall(function() _G.CSScript_PostInit() end)
|
pcall(function() _G.CSScript_PostInit() end)
|
||||||
|
coroutine.resume(coroutine.create(function()
|
||||||
|
while true do
|
||||||
|
wait(0.1)
|
||||||
|
pcall(function() _G.CSScript_Update() end)
|
||||||
|
end
|
||||||
|
end))
|
||||||
while true do
|
while true do
|
||||||
wait(0.001)
|
wait(0.001)
|
||||||
if (game.Lighting:findFirstChild("DisableRespawns") == nil) then
|
if (game.Lighting:findFirstChild("DisableRespawns") == nil) then
|
||||||
|
|
@ -793,6 +805,12 @@ function CSStudio()
|
||||||
pcall(function() dofile("rbxasset://..//..//..//addons//core//AddonLoader.lua") end)
|
pcall(function() dofile("rbxasset://..//..//..//addons//core//AddonLoader.lua") end)
|
||||||
pcall(function() _G.CSScript_PreInit("Studio", "2010L") end)
|
pcall(function() _G.CSScript_PreInit("Studio", "2010L") end)
|
||||||
pcall(function() _G.CSScript_PostInit() end)
|
pcall(function() _G.CSScript_PostInit() end)
|
||||||
|
coroutine.resume(coroutine.create(function()
|
||||||
|
while true do
|
||||||
|
wait(0.1)
|
||||||
|
pcall(function() _G.CSScript_Update() end)
|
||||||
|
end
|
||||||
|
end))
|
||||||
end
|
end
|
||||||
|
|
||||||
_G.CSServer=CSServer
|
_G.CSServer=CSServer
|
||||||
|
|
|
||||||
|
|
@ -672,6 +672,12 @@ function CSServer(Port,PlayerLimit,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Noti
|
||||||
NetworkServer.IncommingConnection:connect(IncommingConnection)
|
NetworkServer.IncommingConnection:connect(IncommingConnection)
|
||||||
pcall(function() game.Close:connect(function() NetworkServer:Stop() end) end)
|
pcall(function() game.Close:connect(function() NetworkServer:Stop() end) end)
|
||||||
pcall(function() _G.CSScript_PostInit() end)
|
pcall(function() _G.CSScript_PostInit() end)
|
||||||
|
coroutine.resume(coroutine.create(function()
|
||||||
|
while true do
|
||||||
|
wait(0.1)
|
||||||
|
pcall(function() _G.CSScript_Update() end)
|
||||||
|
end
|
||||||
|
end))
|
||||||
end
|
end
|
||||||
|
|
||||||
function CSConnect(UserID,ServerIP,ServerPort,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,IconType,ItemID,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Tripcode,ValidatedScripts,Ticket)
|
function CSConnect(UserID,ServerIP,ServerPort,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,IconType,ItemID,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Tripcode,ValidatedScripts,Ticket)
|
||||||
|
|
@ -811,6 +817,12 @@ function CSSolo(UserID,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,
|
||||||
game.Workspace:InsertContent("rbxasset://Fonts//libraries.rbxm")
|
game.Workspace:InsertContent("rbxasset://Fonts//libraries.rbxm")
|
||||||
game:GetService("Visit"):SetUploadUrl("")
|
game:GetService("Visit"):SetUploadUrl("")
|
||||||
pcall(function() _G.CSScript_PostInit() end)
|
pcall(function() _G.CSScript_PostInit() end)
|
||||||
|
coroutine.resume(coroutine.create(function()
|
||||||
|
while true do
|
||||||
|
wait(0.1)
|
||||||
|
pcall(function() _G.CSScript_Update() end)
|
||||||
|
end
|
||||||
|
end))
|
||||||
while true do
|
while true do
|
||||||
wait(0.001)
|
wait(0.001)
|
||||||
if (game.Lighting:findFirstChild("DisableRespawns") == nil) then
|
if (game.Lighting:findFirstChild("DisableRespawns") == nil) then
|
||||||
|
|
@ -833,6 +845,12 @@ function CSStudio()
|
||||||
pcall(function() dofile("rbxasset://..//..//..//addons//core//AddonLoader.lua") end)
|
pcall(function() dofile("rbxasset://..//..//..//addons//core//AddonLoader.lua") end)
|
||||||
pcall(function() _G.CSScript_PreInit("Studio", "2011E") end)
|
pcall(function() _G.CSScript_PreInit("Studio", "2011E") end)
|
||||||
pcall(function() _G.CSScript_PostInit() end)
|
pcall(function() _G.CSScript_PostInit() end)
|
||||||
|
coroutine.resume(coroutine.create(function()
|
||||||
|
while true do
|
||||||
|
wait(0.1)
|
||||||
|
pcall(function() _G.CSScript_Update() end)
|
||||||
|
end
|
||||||
|
end))
|
||||||
end
|
end
|
||||||
|
|
||||||
_G.CSServer=CSServer
|
_G.CSServer=CSServer
|
||||||
|
|
|
||||||
|
|
@ -678,6 +678,12 @@ function CSServer(Port,PlayerLimit,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Noti
|
||||||
NetworkServer.IncommingConnection:connect(IncommingConnection)
|
NetworkServer.IncommingConnection:connect(IncommingConnection)
|
||||||
pcall(function() game.Close:connect(function() NetworkServer:Stop() end) end)
|
pcall(function() game.Close:connect(function() NetworkServer:Stop() end) end)
|
||||||
pcall(function() _G.CSScript_PostInit() end)
|
pcall(function() _G.CSScript_PostInit() end)
|
||||||
|
coroutine.resume(coroutine.create(function()
|
||||||
|
while true do
|
||||||
|
wait(0.1)
|
||||||
|
pcall(function() _G.CSScript_Update() end)
|
||||||
|
end
|
||||||
|
end))
|
||||||
end
|
end
|
||||||
|
|
||||||
function CSConnect(UserID,ServerIP,ServerPort,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,IconType,ItemID,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Tripcode,ValidatedScripts,NewGUI,Ticket)
|
function CSConnect(UserID,ServerIP,ServerPort,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,IconType,ItemID,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Tripcode,ValidatedScripts,NewGUI,Ticket)
|
||||||
|
|
@ -824,6 +830,12 @@ function CSSolo(UserID,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,
|
||||||
game.Workspace:InsertContent("rbxasset://Fonts//libraries.rbxm")
|
game.Workspace:InsertContent("rbxasset://Fonts//libraries.rbxm")
|
||||||
game:GetService("Visit"):SetUploadUrl("")
|
game:GetService("Visit"):SetUploadUrl("")
|
||||||
pcall(function() _G.CSScript_PostInit() end)
|
pcall(function() _G.CSScript_PostInit() end)
|
||||||
|
coroutine.resume(coroutine.create(function()
|
||||||
|
while true do
|
||||||
|
wait(0.1)
|
||||||
|
pcall(function() _G.CSScript_Update() end)
|
||||||
|
end
|
||||||
|
end))
|
||||||
while true do
|
while true do
|
||||||
wait(0.001)
|
wait(0.001)
|
||||||
if (game.Lighting:findFirstChild("DisableRespawns") == nil) then
|
if (game.Lighting:findFirstChild("DisableRespawns") == nil) then
|
||||||
|
|
@ -854,6 +866,12 @@ function CSStudio(NewGUI)
|
||||||
end)
|
end)
|
||||||
dofile("rbxasset://scripts\\cores\\StarterScript.lua")
|
dofile("rbxasset://scripts\\cores\\StarterScript.lua")
|
||||||
pcall(function() _G.CSScript_PostInit() end)
|
pcall(function() _G.CSScript_PostInit() end)
|
||||||
|
coroutine.resume(coroutine.create(function()
|
||||||
|
while true do
|
||||||
|
wait(0.1)
|
||||||
|
pcall(function() _G.CSScript_Update() end)
|
||||||
|
end
|
||||||
|
end))
|
||||||
end
|
end
|
||||||
|
|
||||||
_G.CSServer=CSServer
|
_G.CSServer=CSServer
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue