From 44c097fbacc7344416a7d26a829d5b72cc2ad180 Mon Sep 17 00:00:00 2001 From: Bitl Date: Fri, 27 Nov 2020 17:02:56 -0700 Subject: [PATCH] Update CSView.lua --- scripts/3DView/CSView.lua | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/3DView/CSView.lua b/scripts/3DView/CSView.lua index e771030..4b1f562 100644 --- a/scripts/3DView/CSView.lua +++ b/scripts/3DView/CSView.lua @@ -13,8 +13,10 @@ function newWaitForChild(newParent,name) end function LoadCharacterNew(playerApp,newChar) - local path = "rbxasset://../../../shareddata/charcustom/" + wait(0.65) + local path = "rbxasset://../../../shareddata/charcustom/" + local charparts = {[1] = newWaitForChild(newChar,"Head"),[2] = newWaitForChild(newChar,"Torso"),[3] = newWaitForChild(newChar,"Left Arm"),[4] = newWaitForChild(newChar,"Right Arm"),[5] = newWaitForChild(newChar,"Left Leg"),[6] = newWaitForChild(newChar,"Right Leg")} for _,newVal in pairs(playerApp:GetChildren()) do local customtype = newVal.CustomizationType.Value @@ -332,6 +334,7 @@ function CS3DView(UserID,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorI game.GuiRoot.ScoreHud:Remove() game.GuiRoot.ChatHud:Remove() game:SetMessage("Loading Player...") + local plr = game.Players:CreateLocalPlayer(UserID) game:GetService("RunService"):Run() plr.Name = PlayerName @@ -346,11 +349,10 @@ function CS3DView(UserID,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorI plr:SetMembershipType(Enum.MembershipType.None) end plr.CharacterAppearance=0 - pcall(function() plr:SetSuperSafeChat(true) end) InitalizeClientAppearance(plr,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,ItemID) - LoadCharacterNew(newWaitForChild(plr,"Appearance"),plr.Character) + LoadCharacterNew(newWaitForChild(plr,"Appearance"),plr.Character,false) game.Workspace:InsertContent("rbxasset://Fonts//libraries.rbxm") - game:GetService("Visit") + game:GetService("Visit"):SetUploadUrl("") if (plr.PlayerGui:FindFirstChild("HealthGUI")) then plr.PlayerGui.HealthGUI:Remove()