Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local UI = script.Parent
- local MainFrame = UI.MainFrame
- local Exit = MainFrame.Exit
- local Update = game.ReplicatedStorage.Remotes.Update
- local FaceFrame = MainFrame.FaceFrame
- local PantsFrame = MainFrame.PantsFrame
- local SkinFrame = MainFrame.SkinFrame
- local ShirtFrame = MainFrame.ShirtFrame
- MainFrame.Draggable = true
- for a, b in pairs(SkinFrame:GetChildren()) do
- if b.ClassName ~= "UIGridLayout" then
- b.MouseButton1Click:Connect(function()
- Update:FireServer("Skin", b.BackgroundColor3)
- end)
- end
- end
- for c, d in pairs(ShirtFrame:GetChildren()) do
- if d.ClassName ~= "UIGridLayout" then
- d.MouseButton1Click:Connect(function()
- Update:FireServer("Shirt", d.Text)
- end)
- end
- end
- for e, f in pairs(PantsFrame:GetChildren()) do
- if f.ClassName ~= "UIGridLayout" then
- f.MouseButton1Click:Connect(function()
- Update:FireServer("Pants", f.Text)
- end)
- end
- end
- for g, h in pairs(FaceFrame:GetChildren()) do
- if h.ClassName ~= "UIGridLayout" then
- h.MouseButton1Click:Connect(function()
- Update:FireServer("Face", h.Text)
- end)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement