Update CSView.lua

This commit is contained in:
Bitl 2020-11-27 17:02:56 -07:00
parent fc9ece8bf3
commit 44c097fbac
1 changed files with 6 additions and 4 deletions

View File

@ -13,6 +13,8 @@ function newWaitForChild(newParent,name)
end end
function LoadCharacterNew(playerApp,newChar) function LoadCharacterNew(playerApp,newChar)
wait(0.65)
local path = "rbxasset://../../../shareddata/charcustom/" 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")} 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")}
@ -332,6 +334,7 @@ function CS3DView(UserID,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorI
game.GuiRoot.ScoreHud:Remove() game.GuiRoot.ScoreHud:Remove()
game.GuiRoot.ChatHud:Remove() game.GuiRoot.ChatHud:Remove()
game:SetMessage("Loading Player...") game:SetMessage("Loading Player...")
local plr = game.Players:CreateLocalPlayer(UserID) local plr = game.Players:CreateLocalPlayer(UserID)
game:GetService("RunService"):Run() game:GetService("RunService"):Run()
plr.Name = PlayerName plr.Name = PlayerName
@ -346,11 +349,10 @@ function CS3DView(UserID,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorI
plr:SetMembershipType(Enum.MembershipType.None) plr:SetMembershipType(Enum.MembershipType.None)
end end
plr.CharacterAppearance=0 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) 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.Workspace:InsertContent("rbxasset://Fonts//libraries.rbxm")
game:GetService("Visit") game:GetService("Visit"):SetUploadUrl("")
if (plr.PlayerGui:FindFirstChild("HealthGUI")) then if (plr.PlayerGui:FindFirstChild("HealthGUI")) then
plr.PlayerGui.HealthGUI:Remove() plr.PlayerGui.HealthGUI:Remove()