Advertisement
Existence_YT

[RobloxStudioProjects] CharCustom - (1) CharCustom_Client

Oct 12th, 2019
1,274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.07 KB | None | 0 0
  1. local UI = script.Parent
  2. local MainFrame = UI.MainFrame
  3. local Exit = MainFrame.Exit
  4. local Update = game.ReplicatedStorage.Remotes.Update
  5.  
  6. local FaceFrame = MainFrame.FaceFrame
  7. local PantsFrame = MainFrame.PantsFrame
  8. local SkinFrame = MainFrame.SkinFrame
  9. local ShirtFrame = MainFrame.ShirtFrame
  10.  
  11. MainFrame.Draggable = true
  12. for a, b in pairs(SkinFrame:GetChildren()) do
  13.     if b.ClassName ~= "UIGridLayout" then
  14.         b.MouseButton1Click:Connect(function()
  15.             Update:FireServer("Skin", b.BackgroundColor3)
  16.         end)
  17.     end
  18. end
  19. for c, d in pairs(ShirtFrame:GetChildren()) do
  20.     if d.ClassName ~= "UIGridLayout" then
  21.         d.MouseButton1Click:Connect(function()
  22.             Update:FireServer("Shirt", d.Text)
  23.         end)
  24.     end
  25. end
  26. for e, f in pairs(PantsFrame:GetChildren()) do
  27.     if f.ClassName ~= "UIGridLayout" then
  28.         f.MouseButton1Click:Connect(function()
  29.             Update:FireServer("Pants", f.Text)
  30.         end)
  31.     end
  32. end
  33. for g, h in pairs(FaceFrame:GetChildren()) do
  34.     if h.ClassName ~= "UIGridLayout" then
  35.         h.MouseButton1Click:Connect(function()
  36.             Update:FireServer("Face", h.Text)
  37.         end)
  38.     end
  39. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement