From efcac3b7ec126e22ad8e6f16c81ed1c74e0b09cc Mon Sep 17 00:00:00 2001 From: Bitl Date: Thu, 20 Jul 2017 14:35:03 -0700 Subject: [PATCH] offline faces --- CSMPFunctions.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/CSMPFunctions.lua b/CSMPFunctions.lua index ffb3047..dca1862 100644 --- a/CSMPFunctions.lua +++ b/CSMPFunctions.lua @@ -228,7 +228,7 @@ function LoadCharacterNew(playerApp,newChar) elseif (newVal.CustomizationType.Value == 6) then if (rbxlegacyversion ~= "pre-alpha" or rbxlegacyversion ~= "pre-alpha-ext" or rbxlegacyversion ~= "alpha" or rbxlegacyversion ~= "beta" or rbxlegacyversion ~= "delta-beta") then pcall(function() - local newFace = game.Workspace:InsertContent("http://www.roblox.com/asset/?id="..newVal.Value) + local newFace = game.Workspace:InsertContent("rbxasset://../../../charcustom/faces/"..newVal.Value) if newFace[1] then if newFace[1].className == "Decal" then newWaitForChild(charparts[1],"face"):remove() @@ -373,12 +373,13 @@ function InitalizeClientAppearance(Player,Hat1ID,Hat2ID,Hat3ID,HeadColorID,Torso typeValue.Value = 5 --FACE local newFace = Instance.new("StringValue",newCharApp) - if (FaceID ~= nil or FaceID ~= "0") then + if (FaceID ~= nil) then newFace.Value = FaceID + newFace.Name = FaceID else - newFace.Value = "0" + newFace.Value = "DefaultFace.rbxm" + newFace.Name = "DefaultFace.rbxm" end - newFace.Name = "Face" local typeValue = Instance.new("NumberValue") typeValue.Name = "CustomizationType" typeValue.Parent = newFace