Existence_YT

[RobloxStudioProjects] CharCustom - (1) CharCustom_Server

Oct 12th, 2019
651
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local Shirts = {
  2.     [1] = "rbxassetid://735646641",
  3.     [2] = "rbxassetid://1852410340",
  4.     [3] = "rbxassetid://1011563561",
  5.     [4] = "rbxassetid://938429753",
  6.     [5] = "rbxassetid://906004412"
  7. }
  8. local Pants = {
  9.     [1] = "rbxassetid://800575732",
  10.     [2] = "rbxassetid://1852410340",
  11.     [3] = "rbxassetid://484480221",
  12.     [4] = "rbxassetid://938429753",
  13.     [5] = "rbxassetid://906036249"
  14. }
  15. local Face = {
  16.     [1] = "rbxassetid://162296900",
  17.     [2] = "rbxassetid://680996448",
  18.     [3] = "rbxassetid://25595114",
  19.     [4] = "rbxassetid://21216027",
  20.     [5] = "rbxassetid://66054946"
  21. }
  22.  
  23. game.ReplicatedStorage.Remotes.Update.OnServerEvent:Connect(function(plr, _Name, _ID)
  24.     if not _Name then print("Invalid Name") end
  25.     if not _ID then print("Invalid ID") end
  26.            
  27.     if _Name == "Skin" then
  28.         plr.Character["Body Colors"].HeadColor3 = _ID
  29.         plr.Character["Body Colors"].LeftArmColor3 = _ID
  30.         plr.Character["Body Colors"].LeftLegColor3 = _ID
  31.         plr.Character["Body Colors"].RightArmColor3 = _ID
  32.         plr.Character["Body Colors"].RightLegColor3 = _ID
  33.         plr.Character["Body Colors"].TorsoColor3 = _ID
  34.     elseif _Name == "Shirt" then
  35.         plr.Character.Shirt.ShirtTemplate = Shirts[tonumber(_ID)]
  36.     elseif _Name == "Pants" then
  37.         plr.Character.Pants.PantsTemplate = Pants[tonumber(_ID)]
  38.     elseif _Name == "Face" then
  39.         plr.Character.Head.face.Texture = Face[tonumber(_ID)]
  40.     else
  41.         print("Invalid Param (2)")
  42.     end
  43. end)
Add Comment
Please, Sign In to add comment