View difference between Paste ID: g78FGHJZ and i65MHjXe
SHOW: | | - or go back to the newest paste.
1-
local UI = script.Parent
1+
local Shirts = {
2-
local MainFrame = UI.MainFrame
2+
	[1]	= "rbxassetid://735646641",
3-
local Exit = MainFrame.Exit
3+
	[2] = "rbxassetid://1852410340",
4-
local Update = game.ReplicatedStorage.Remotes.Update
4+
	[3] = "rbxassetid://1011563561",
5
	[4] = "rbxassetid://938429753",
6-
local FaceFrame = MainFrame.FaceFrame
6+
	[5] = "rbxassetid://906004412"
7-
local PantsFrame = MainFrame.PantsFrame
7+
}
8-
local SkinFrame = MainFrame.SkinFrame
8+
local Pants = {
9-
local ShirtFrame = MainFrame.ShirtFrame
9+
	[1]	= "rbxassetid://800575732",
10
	[2] = "rbxassetid://1852410340",
11-
MainFrame.Draggable = true
11+
	[3] = "rbxassetid://484480221",
12-
for a, b in pairs(SkinFrame:GetChildren()) do
12+
	[4] = "rbxassetid://938429753",
13-
	if b.ClassName ~= "UIGridLayout" then
13+
	[5] = "rbxassetid://906036249"
14-
		b.MouseButton1Click:Connect(function()
14+
}
15-
			Update:FireServer("Skin", b.BackgroundColor3)
15+
local Face = {
16-
		end)
16+
	[1]	= "rbxassetid://162296900",
17
	[2] = "rbxassetid://680996448",
18-
end
18+
	[3] = "rbxassetid://25595114",
19-
for c, d in pairs(ShirtFrame:GetChildren()) do
19+
	[4] = "rbxassetid://21216027",
20-
	if d.ClassName ~= "UIGridLayout" then
20+
	[5] = "rbxassetid://66054946"
21-
		d.MouseButton1Click:Connect(function()
21+
}
22-
			Update:FireServer("Shirt", d.Text)
22+
23-
		end)
23+
game.ReplicatedStorage.Remotes.Update.OnServerEvent:Connect(function(plr, _Name, _ID)
24
	if not _Name then print("Invalid Name")	end
25-
end
25+
	if not _ID then print("Invalid ID") end
26-
for e, f in pairs(PantsFrame:GetChildren()) do
26+
			
27-
	if f.ClassName ~= "UIGridLayout" then
27+
	if _Name == "Skin" then
28-
		f.MouseButton1Click:Connect(function()
28+
		plr.Character["Body Colors"].HeadColor3 = _ID
29-
			Update:FireServer("Pants", f.Text)
29+
		plr.Character["Body Colors"].LeftArmColor3 = _ID
30-
		end)
30+
		plr.Character["Body Colors"].LeftLegColor3 = _ID
31
		plr.Character["Body Colors"].RightArmColor3 = _ID
32-
end
32+
		plr.Character["Body Colors"].RightLegColor3 = _ID
33-
for g, h in pairs(FaceFrame:GetChildren()) do
33+
		plr.Character["Body Colors"].TorsoColor3 = _ID
34-
	if h.ClassName ~= "UIGridLayout" then
34+
	elseif _Name == "Shirt" then
35-
		h.MouseButton1Click:Connect(function()
35+
		plr.Character.Shirt.ShirtTemplate = Shirts[tonumber(_ID)]
36-
			Update:FireServer("Face", h.Text)
36+
	elseif _Name == "Pants" then
37-
		end)
37+
		plr.Character.Pants.PantsTemplate = Pants[tonumber(_ID)]
38
	elseif _Name == "Face" then
39-
end
39+
		plr.Character.Head.face.Texture = Face[tonumber(_ID)]
40
	else
41
		print("Invalid Param (2)")
42
	end
43
end)