From 139b2b8ae07bce9d44628bb4b17a068e2b75b8d6 Mon Sep 17 00:00:00 2001 From: Bitl Date: Fri, 18 Sep 2020 16:38:30 -0700 Subject: [PATCH] update scripts --- scripts/2007M-Shaders/CSMPFunctions.lua | 13 ++---- scripts/2007M/CSMPFunctions.lua | 13 ++---- scripts/2008M/CSMPFunctions.lua | 39 ++++++----------- scripts/2009E/CSMPFunctions.lua | 56 ++++++++----------------- scripts/2009L/CSMPFunctions.lua | 56 ++++++++----------------- scripts/2010L/CSMPFunctions.lua | 56 ++++++++----------------- scripts/2011E/CSMPFunctions.lua | 56 ++++++++----------------- scripts/2011M/CSMPFunctions.lua | 2 + scripts/3DView/CSView.lua | 56 ++++++++----------------- 9 files changed, 112 insertions(+), 235 deletions(-) diff --git a/scripts/2007M-Shaders/CSMPFunctions.lua b/scripts/2007M-Shaders/CSMPFunctions.lua index 2b95da5..8880024 100644 --- a/scripts/2007M-Shaders/CSMPFunctions.lua +++ b/scripts/2007M-Shaders/CSMPFunctions.lua @@ -87,15 +87,10 @@ function LoadCharacterNew(playerApp,newChar) newTShirt = Instance.new("ShirtGraphic") newTShirt.Graphic = newVal.Value newTShirt.Parent = newChar - elseif (string.match(newVal.Value, "roblox") == "roblox") then - newTShirt = game.Workspace:InsertContent(newVal.Value) - if newTShirt[1] then - if newTShirt[1].className == "ShirtGraphic" then - newTShirt[1].Parent = newChar - else - newTShirt[1]:remove() - end - end + elseif (string.match(newVal.Value, "epicgamers") == "epicgamers") then + newTShirt = Instance.new("ShirtGraphic") + newTShirt.Graphic = newVal.Value + newTShirt.Parent = newChar else newTShirt = game.Workspace:InsertContent(path.."tshirts/"..newVal.Value) if newTShirt[1] then diff --git a/scripts/2007M/CSMPFunctions.lua b/scripts/2007M/CSMPFunctions.lua index f2a0cf5..f5aa705 100644 --- a/scripts/2007M/CSMPFunctions.lua +++ b/scripts/2007M/CSMPFunctions.lua @@ -87,15 +87,10 @@ function LoadCharacterNew(playerApp,newChar) newTShirt = Instance.new("ShirtGraphic") newTShirt.Graphic = newVal.Value newTShirt.Parent = newChar - elseif (string.match(newVal.Value, "roblox") == "roblox") then - newTShirt = game.Workspace:InsertContent(newVal.Value) - if newTShirt[1] then - if newTShirt[1].className == "ShirtGraphic" then - newTShirt[1].Parent = newChar - else - newTShirt[1]:remove() - end - end + elseif (string.match(newVal.Value, "epicgamers") == "epicgamers") then + newTShirt = Instance.new("ShirtGraphic") + newTShirt.Graphic = newVal.Value + newTShirt.Parent = newChar else newTShirt = game.Workspace:InsertContent(path.."tshirts/"..newVal.Value) if newTShirt[1] then diff --git a/scripts/2008M/CSMPFunctions.lua b/scripts/2008M/CSMPFunctions.lua index 6bb0a45..0daaaf2 100644 --- a/scripts/2008M/CSMPFunctions.lua +++ b/scripts/2008M/CSMPFunctions.lua @@ -88,15 +88,10 @@ function LoadCharacterNew(playerApp,newChar) newTShirt = Instance.new("ShirtGraphic") newTShirt.Graphic = newVal.Value newTShirt.Parent = newChar - elseif (string.match(newVal.Value, "roblox") == "roblox") then - newTShirt = game.Workspace:InsertContent(newVal.Value) - if newTShirt[1] then - if newTShirt[1].className == "ShirtGraphic" then - newTShirt[1].Parent = newChar - else - newTShirt[1]:remove() - end - end + elseif (string.match(newVal.Value, "epicgamers") == "epicgamers") then + newTShirt = Instance.new("ShirtGraphic") + newTShirt.Graphic = newVal.Value + newTShirt.Parent = newChar else newTShirt = game.Workspace:InsertContent(path.."tshirts/"..newVal.Value) if newTShirt[1] then @@ -115,15 +110,10 @@ function LoadCharacterNew(playerApp,newChar) newShirt = Instance.new("Shirt") newShirt.ShirtTemplate = newVal.Value newShirt.Parent = newChar - elseif (string.match(newVal.Value, "roblox") == "roblox") then - newShirt = game.Workspace:InsertContent(newVal.Value) - if newShirt[1] then - if newShirt[1].className == "Shirt" then - newShirt[1].Parent = newChar - else - newShirt[1]:remove() - end - end + elseif (string.match(newVal.Value, "epicgamers") == "epicgamers") then + newShirt = Instance.new("Shirt") + newShirt.ShirtTemplate = newVal.Value + newShirt.Parent = newChar else newShirt = game.Workspace:InsertContent(path.."shirts/"..newVal.Value) if newShirt[1] then @@ -142,15 +132,10 @@ function LoadCharacterNew(playerApp,newChar) newPants = Instance.new("Pants") newPants.PantsTemplate = newVal.Value newPants.Parent = newChar - elseif (string.match(newVal.Value, "roblox") == "roblox") then - newPants = game.Workspace:InsertContent(newVal.Value) - if newPants[1] then - if newPants[1].className == "Pants" then - newPants[1].Parent = newChar - else - newPants[1]:remove() - end - end + elseif (string.match(newVal.Value, "epicgamers") == "epicgamers") then + newPants = Instance.new("Pants") + newPants.PantsTemplate = newVal.Value + newPants.Parent = newChar else newPants = game.Workspace:InsertContent(path.."pants/"..newVal.Value) if newPants[1] then diff --git a/scripts/2009E/CSMPFunctions.lua b/scripts/2009E/CSMPFunctions.lua index a524c95..2d4d457 100644 --- a/scripts/2009E/CSMPFunctions.lua +++ b/scripts/2009E/CSMPFunctions.lua @@ -88,15 +88,10 @@ function LoadCharacterNew(playerApp,newChar) newTShirt = Instance.new("ShirtGraphic") newTShirt.Graphic = newVal.Value newTShirt.Parent = newChar - elseif (string.match(newVal.Value, "roblox") == "roblox") then - newTShirt = game.Workspace:InsertContent(newVal.Value) - if newTShirt[1] then - if newTShirt[1].className == "ShirtGraphic" then - newTShirt[1].Parent = newChar - else - newTShirt[1]:remove() - end - end + elseif (string.match(newVal.Value, "epicgamers") == "epicgamers") then + newTShirt = Instance.new("ShirtGraphic") + newTShirt.Graphic = newVal.Value + newTShirt.Parent = newChar else newTShirt = game.Workspace:InsertContent(path.."tshirts/"..newVal.Value) if newTShirt[1] then @@ -115,15 +110,10 @@ function LoadCharacterNew(playerApp,newChar) newShirt = Instance.new("Shirt") newShirt.ShirtTemplate = newVal.Value newShirt.Parent = newChar - elseif (string.match(newVal.Value, "roblox") == "roblox") then - newShirt = game.Workspace:InsertContent(newVal.Value) - if newShirt[1] then - if newShirt[1].className == "Shirt" then - newShirt[1].Parent = newChar - else - newShirt[1]:remove() - end - end + elseif (string.match(newVal.Value, "epicgamers") == "epicgamers") then + newShirt = Instance.new("Shirt") + newShirt.ShirtTemplate = newVal.Value + newShirt.Parent = newChar else newShirt = game.Workspace:InsertContent(path.."shirts/"..newVal.Value) if newShirt[1] then @@ -142,15 +132,10 @@ function LoadCharacterNew(playerApp,newChar) newPants = Instance.new("Pants") newPants.PantsTemplate = newVal.Value newPants.Parent = newChar - elseif (string.match(newVal.Value, "roblox") == "roblox") then - newPants = game.Workspace:InsertContent(newVal.Value) - if newPants[1] then - if newPants[1].className == "Pants" then - newPants[1].Parent = newChar - else - newPants[1]:remove() - end - end + elseif (string.match(newVal.Value, "epicgamers") == "epicgamers") then + newPants = Instance.new("Pants") + newPants.PantsTemplate = newVal.Value + newPants.Parent = newChar else newPants = game.Workspace:InsertContent(path.."pants/"..newVal.Value) if newPants[1] then @@ -171,17 +156,12 @@ function LoadCharacterNew(playerApp,newChar) newFace.Texture = newVal.Value newFace.Face = "Front" newFace.Parent = charparts[1] - elseif (string.match(newVal.Value, "roblox") == "roblox") then - newFace = game.Workspace:InsertContent(newVal.Value) - if newFace[1] then - if newFace[1].className == "Decal" then - newWaitForChild(charparts[1],"face"):remove() - newFace[1].Parent = charparts[1] - newFace[1].Face = "Front" - else - newFace[1]:remove() - end - end + elseif (string.match(newVal.Value, "epicgamers") == "epicgamers") then + newWaitForChild(charparts[1],"face"):remove() + newFace = Instance.new("Decal") + newFace.Texture = newVal.Value + newFace.Face = "Front" + newFace.Parent = charparts[1] else newFace = game.Workspace:InsertContent(path.."faces/"..newVal.Value) if newFace[1] then diff --git a/scripts/2009L/CSMPFunctions.lua b/scripts/2009L/CSMPFunctions.lua index 4385213..fd60dbf 100644 --- a/scripts/2009L/CSMPFunctions.lua +++ b/scripts/2009L/CSMPFunctions.lua @@ -92,15 +92,10 @@ function LoadCharacterNew(playerApp,newChar) newTShirt = Instance.new("ShirtGraphic") newTShirt.Graphic = newVal.Value newTShirt.Parent = newChar - elseif (string.match(newVal.Value, "roblox") == "roblox") then - newTShirt = game.Workspace:InsertContent(newVal.Value) - if newTShirt[1] then - if newTShirt[1].className == "ShirtGraphic" then - newTShirt[1].Parent = newChar - else - newTShirt[1]:remove() - end - end + elseif (string.match(newVal.Value, "epicgamers") == "epicgamers") then + newTShirt = Instance.new("ShirtGraphic") + newTShirt.Graphic = newVal.Value + newTShirt.Parent = newChar else newTShirt = game.Workspace:InsertContent(path.."tshirts/"..newVal.Value) if newTShirt[1] then @@ -119,15 +114,10 @@ function LoadCharacterNew(playerApp,newChar) newShirt = Instance.new("Shirt") newShirt.ShirtTemplate = newVal.Value newShirt.Parent = newChar - elseif (string.match(newVal.Value, "roblox") == "roblox") then - newShirt = game.Workspace:InsertContent(newVal.Value) - if newShirt[1] then - if newShirt[1].className == "Shirt" then - newShirt[1].Parent = newChar - else - newShirt[1]:remove() - end - end + elseif (string.match(newVal.Value, "epicgamers") == "epicgamers") then + newShirt = Instance.new("Shirt") + newShirt.ShirtTemplate = newVal.Value + newShirt.Parent = newChar else newShirt = game.Workspace:InsertContent(path.."shirts/"..newVal.Value) if newShirt[1] then @@ -146,15 +136,10 @@ function LoadCharacterNew(playerApp,newChar) newPants = Instance.new("Pants") newPants.PantsTemplate = newVal.Value newPants.Parent = newChar - elseif (string.match(newVal.Value, "roblox") == "roblox") then - newPants = game.Workspace:InsertContent(newVal.Value) - if newPants[1] then - if newPants[1].className == "Pants" then - newPants[1].Parent = newChar - else - newPants[1]:remove() - end - end + elseif (string.match(newVal.Value, "epicgamers") == "epicgamers") then + newPants = Instance.new("Pants") + newPants.PantsTemplate = newVal.Value + newPants.Parent = newChar else newPants = game.Workspace:InsertContent(path.."pants/"..newVal.Value) if newPants[1] then @@ -175,17 +160,12 @@ function LoadCharacterNew(playerApp,newChar) newFace.Texture = newVal.Value newFace.Face = "Front" newFace.Parent = charparts[1] - elseif (string.match(newVal.Value, "roblox") == "roblox") then - newFace = game.Workspace:InsertContent(newVal.Value) - if newFace[1] then - if newFace[1].className == "Decal" then - newWaitForChild(charparts[1],"face"):remove() - newFace[1].Parent = charparts[1] - newFace[1].Face = "Front" - else - newFace[1]:remove() - end - end + elseif (string.match(newVal.Value, "epicgamers") == "epicgamers") then + newWaitForChild(charparts[1],"face"):remove() + newFace = Instance.new("Decal") + newFace.Texture = newVal.Value + newFace.Face = "Front" + newFace.Parent = charparts[1] else newFace = game.Workspace:InsertContent(path.."faces/"..newVal.Value) if newFace[1] then diff --git a/scripts/2010L/CSMPFunctions.lua b/scripts/2010L/CSMPFunctions.lua index 4527d54..0adfd80 100644 --- a/scripts/2010L/CSMPFunctions.lua +++ b/scripts/2010L/CSMPFunctions.lua @@ -92,15 +92,10 @@ function LoadCharacterNew(playerApp,newChar) newTShirt = Instance.new("ShirtGraphic") newTShirt.Graphic = newVal.Value newTShirt.Parent = newChar - elseif (string.match(newVal.Value, "roblox") == "roblox") then - newTShirt = game.Workspace:InsertContent(newVal.Value) - if newTShirt[1] then - if newTShirt[1].className == "ShirtGraphic" then - newTShirt[1].Parent = newChar - else - newTShirt[1]:remove() - end - end + elseif (string.match(newVal.Value, "epicgamers") == "epicgamers") then + newTShirt = Instance.new("ShirtGraphic") + newTShirt.Graphic = newVal.Value + newTShirt.Parent = newChar else newTShirt = game.Workspace:InsertContent(path.."tshirts/"..newVal.Value) if newTShirt[1] then @@ -119,15 +114,10 @@ function LoadCharacterNew(playerApp,newChar) newShirt = Instance.new("Shirt") newShirt.ShirtTemplate = newVal.Value newShirt.Parent = newChar - elseif (string.match(newVal.Value, "roblox") == "roblox") then - newShirt = game.Workspace:InsertContent(newVal.Value) - if newShirt[1] then - if newShirt[1].className == "Shirt" then - newShirt[1].Parent = newChar - else - newShirt[1]:remove() - end - end + elseif (string.match(newVal.Value, "epicgamers") == "epicgamers") then + newShirt = Instance.new("Shirt") + newShirt.ShirtTemplate = newVal.Value + newShirt.Parent = newChar else newShirt = game.Workspace:InsertContent(path.."shirts/"..newVal.Value) if newShirt[1] then @@ -146,15 +136,10 @@ function LoadCharacterNew(playerApp,newChar) newPants = Instance.new("Pants") newPants.PantsTemplate = newVal.Value newPants.Parent = newChar - elseif (string.match(newVal.Value, "roblox") == "roblox") then - newPants = game.Workspace:InsertContent(newVal.Value) - if newPants[1] then - if newPants[1].className == "Pants" then - newPants[1].Parent = newChar - else - newPants[1]:remove() - end - end + elseif (string.match(newVal.Value, "epicgamers") == "epicgamers") then + newPants = Instance.new("Pants") + newPants.PantsTemplate = newVal.Value + newPants.Parent = newChar else newPants = game.Workspace:InsertContent(path.."pants/"..newVal.Value) if newPants[1] then @@ -175,17 +160,12 @@ function LoadCharacterNew(playerApp,newChar) newFace.Texture = newVal.Value newFace.Face = "Front" newFace.Parent = charparts[1] - elseif (string.match(newVal.Value, "roblox") == "roblox") then - newFace = game.Workspace:InsertContent(newVal.Value) - if newFace[1] then - if newFace[1].className == "Decal" then - newWaitForChild(charparts[1],"face"):remove() - newFace[1].Parent = charparts[1] - newFace[1].Face = "Front" - else - newFace[1]:remove() - end - end + elseif (string.match(newVal.Value, "epicgamers") == "epicgamers") then + newWaitForChild(charparts[1],"face"):remove() + newFace = Instance.new("Decal") + newFace.Texture = newVal.Value + newFace.Face = "Front" + newFace.Parent = charparts[1] else newFace = game.Workspace:InsertContent(path.."faces/"..newVal.Value) if newFace[1] then diff --git a/scripts/2011E/CSMPFunctions.lua b/scripts/2011E/CSMPFunctions.lua index b71cb32..41a0bec 100644 --- a/scripts/2011E/CSMPFunctions.lua +++ b/scripts/2011E/CSMPFunctions.lua @@ -109,15 +109,10 @@ function LoadCharacterNew(playerApp,newChar) newTShirt = Instance.new("ShirtGraphic") newTShirt.Graphic = newVal.Value newTShirt.Parent = newChar - elseif (string.match(newVal.Value, "roblox") == "roblox") then - newTShirt = game.Workspace:InsertContent(newVal.Value) - if newTShirt[1] then - if newTShirt[1].className == "ShirtGraphic" then - newTShirt[1].Parent = newChar - else - newTShirt[1]:remove() - end - end + elseif (string.match(newVal.Value, "epicgamers") == "epicgamers") then + newTShirt = Instance.new("ShirtGraphic") + newTShirt.Graphic = newVal.Value + newTShirt.Parent = newChar else newTShirt = game.Workspace:InsertContent(path.."tshirts/"..newVal.Value) if newTShirt[1] then @@ -136,15 +131,10 @@ function LoadCharacterNew(playerApp,newChar) newShirt = Instance.new("Shirt") newShirt.ShirtTemplate = newVal.Value newShirt.Parent = newChar - elseif (string.match(newVal.Value, "roblox") == "roblox") then - newShirt = game.Workspace:InsertContent(newVal.Value) - if newShirt[1] then - if newShirt[1].className == "Shirt" then - newShirt[1].Parent = newChar - else - newShirt[1]:remove() - end - end + elseif (string.match(newVal.Value, "epicgamers") == "epicgamers")) then + newShirt = Instance.new("Shirt") + newShirt.ShirtTemplate = newVal.Value + newShirt.Parent = newChar else newShirt = game.Workspace:InsertContent(path.."shirts/"..newVal.Value) if newShirt[1] then @@ -163,15 +153,10 @@ function LoadCharacterNew(playerApp,newChar) newPants = Instance.new("Pants") newPants.PantsTemplate = newVal.Value newPants.Parent = newChar - elseif (string.match(newVal.Value, "roblox") == "roblox") then - newPants = game.Workspace:InsertContent(newVal.Value) - if newPants[1] then - if newPants[1].className == "Pants" then - newPants[1].Parent = newChar - else - newPants[1]:remove() - end - end + elseif (string.match(newVal.Value, "epicgamers") == "epicgamers") then + newPants = Instance.new("Pants") + newPants.PantsTemplate = newVal.Value + newPants.Parent = newChar else newPants = game.Workspace:InsertContent(path.."pants/"..newVal.Value) if newPants[1] then @@ -192,17 +177,12 @@ function LoadCharacterNew(playerApp,newChar) newFace.Texture = newVal.Value newFace.Face = "Front" newFace.Parent = charparts[1] - elseif (string.match(newVal.Value, "roblox") == "roblox") then - newFace = game.Workspace:InsertContent(newVal.Value) - if newFace[1] then - if newFace[1].className == "Decal" then - newWaitForChild(charparts[1],"face"):remove() - newFace[1].Parent = charparts[1] - newFace[1].Face = "Front" - else - newFace[1]:remove() - end - end + elseif (string.match(newVal.Value, "epicgamers") == "epicgamers") then + newWaitForChild(charparts[1],"face"):remove() + newFace = Instance.new("Decal") + newFace.Texture = newVal.Value + newFace.Face = "Front" + newFace.Parent = charparts[1] else newFace = game.Workspace:InsertContent(path.."faces/"..newVal.Value) if newFace[1] then diff --git a/scripts/2011M/CSMPFunctions.lua b/scripts/2011M/CSMPFunctions.lua index 5417765..1d369b8 100644 --- a/scripts/2011M/CSMPFunctions.lua +++ b/scripts/2011M/CSMPFunctions.lua @@ -703,9 +703,11 @@ function CSSolo(UserID,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID, newWaitForChild(game.StarterGui, "Dialogs") newWaitForChild(game.StarterGui, "Health") newWaitForChild(game.StarterGui, "Playerlist") + newWaitForChild(game.StarterGui, "Backpack") game.StarterGui.Dialogs:clone().Parent = plr.PlayerGui game.StarterGui.Health:clone().Parent = plr.PlayerGui game.StarterGui.Playerlist:clone().Parent = plr.PlayerGui + game.StarterGui.Backpack:clone().Parent = plr.PlayerGui game:GetService("Visit") while true do wait() if (plr.Character.Humanoid.Health == 0) then diff --git a/scripts/3DView/CSView.lua b/scripts/3DView/CSView.lua index 9619b28..0263fe0 100644 --- a/scripts/3DView/CSView.lua +++ b/scripts/3DView/CSView.lua @@ -40,15 +40,10 @@ function LoadCharacterNew(playerApp,newChar) newTShirt = Instance.new("ShirtGraphic") newTShirt.Graphic = newVal.Value newTShirt.Parent = newChar - elseif (string.match(newVal.Value, "roblox") == "roblox") then - newTShirt = game.Workspace:InsertContent(newVal.Value) - if newTShirt[1] then - if newTShirt[1].className == "ShirtGraphic" then - newTShirt[1].Parent = newChar - else - newTShirt[1]:remove() - end - end + elseif (string.match(newVal.Value, "epicgamers") == "epicgamers") then + newTShirt = Instance.new("ShirtGraphic") + newTShirt.Graphic = newVal.Value + newTShirt.Parent = newChar else newTShirt = game.Workspace:InsertContent(path.."tshirts/"..newVal.Value) if newTShirt[1] then @@ -67,15 +62,10 @@ function LoadCharacterNew(playerApp,newChar) newShirt = Instance.new("Shirt") newShirt.ShirtTemplate = newVal.Value newShirt.Parent = newChar - elseif (string.match(newVal.Value, "roblox") == "roblox") then - newShirt = game.Workspace:InsertContent(newVal.Value) - if newShirt[1] then - if newShirt[1].className == "Shirt" then - newShirt[1].Parent = newChar - else - newShirt[1]:remove() - end - end + elseif (string.match(newVal.Value, "epicgamers") == "epicgamers") then + newShirt = Instance.new("Shirt") + newShirt.ShirtTemplate = newVal.Value + newShirt.Parent = newChar else newShirt = game.Workspace:InsertContent(path.."shirts/"..newVal.Value) if newShirt[1] then @@ -94,15 +84,10 @@ function LoadCharacterNew(playerApp,newChar) newPants = Instance.new("Pants") newPants.PantsTemplate = newVal.Value newPants.Parent = newChar - elseif (string.match(newVal.Value, "roblox") == "roblox") then - newPants = game.Workspace:InsertContent(newVal.Value) - if newPants[1] then - if newPants[1].className == "Pants" then - newPants[1].Parent = newChar - else - newPants[1]:remove() - end - end + elseif (string.match(newVal.Value, "epicgamers") == "epicgamers") then + newPants = Instance.new("Pants") + newPants.PantsTemplate = newVal.Value + newPants.Parent = newChar else newPants = game.Workspace:InsertContent(path.."pants/"..newVal.Value) if newPants[1] then @@ -123,17 +108,12 @@ function LoadCharacterNew(playerApp,newChar) newFace.Texture = newVal.Value newFace.Face = "Front" newFace.Parent = charparts[1] - elseif (string.match(newVal.Value, "roblox") == "roblox") then - newFace = game.Workspace:InsertContent(newVal.Value) - if newFace[1] then - if newFace[1].className == "Decal" then - newWaitForChild(charparts[1],"face"):remove() - newFace[1].Parent = charparts[1] - newFace[1].Face = "Front" - else - newFace[1]:remove() - end - end + elseif (string.match(newVal.Value, "epicgamers") == "epicgamers") then + newWaitForChild(charparts[1],"face"):remove() + newFace = Instance.new("Decal") + newFace.Texture = newVal.Value + newFace.Face = "Front" + newFace.Parent = charparts[1] else newFace = game.Workspace:InsertContent(path.."faces/"..newVal.Value) if newFace[1] then