client=nil service=nil return function(v)local o=service.Players.LocalPlayer:GetMouse()local F=client.UI.Make("\087\105\110\100\111\119",{Name="\080\097\105\110\116",Title="\080\097\105\110\116";Icon=client.MatIcons.Palette})local z=F:Add("\070\114\097\109\101",{Size=UDim2.new(1,0,0,28);Position=UDim2.new(0,0,0,0),BackgroundTransparency=1})local f=z:Add("\084\101\120\116\076\097\098\101\108",{Size=UDim2.new(0,100,1,-8),Position=UDim2.new(1,-180,0,4);Text="\080\105\120\101\108\115\058 \048",TextXAlignment="\082\105\103\104\116",BackgroundTransparency=1})local Q=F:Add("\083\099\114\111\108\108\105\110\103\070\114\097\109\101",{Position=UDim2.new(0,0,0,30),Size=UDim2.new(1,0,1,-30),BackgroundColor3=Color3.new(1,1,1),ClipsDescendants=true})local K=Q:Add("\070\114\097\109\101",{Position=UDim2.new(0,0,0,0),Size=UDim2.new(0,4,0,4);BackgroundColor3=Color3.new(0,0,0),BackgroundTransparency=0;Visible=false})Q.MouseEnter:Connect(function()K.Visible=true end)Q.MouseLeave:Connect(function()K.Visible=false end)local L=false Q.MouseMoved:Connect(function(v,o)local F=Vector2.new(math.abs(v-Q.AbsolutePosition.X),math.abs((o-Q.AbsolutePosition.Y)-36))K.Position=UDim2.new(0,F.X,0,F.Y)if L==false then return end local z=K:Clone()z.Name="\080\105\120\101\108"z.Parent=Q f.Text="\080\105\120\101\108\115\058 "..tostring(f.Text:sub(9)+1)end)local x=z:Add("\084\101\120\116\066\117\116\116\111\110",{Size=UDim2.new(0,70,1,-8);Position=UDim2.new(1,-75,0,4);Text="\067\108\101\097\114";TextXAlignment="\067\101\110\116\101\114";OnClick=function()for v,o in pairs(Q:GetChildren())do if o.Name=="\080\105\120\101\108"then o:Destroy()end end f.Text="\080\105\120\101\108\115\058 \048"end})z:Add("\084\101\120\116\076\097\098\101\108",{Text=" \067\111\108\111\114\058 ",Size=UDim2.new(0,90,1,-8),Position=UDim2.new(0,5,0,4),BackgroundTransparency=.25;TextXAlignment="\076\101\102\116",Children={{Class="\084\101\120\116\066\117\116\116\111\110";Text="",Size=UDim2.new(0,40,1,-6);Position=UDim2.new(1,-45,0,3),BackgroundColor3=Color3.new(0,0,0),TextTransparency=0,BackgroundTransparency=0,BorderPixelSize=1,BorderColor3=Color3.fromRGB(100,100,100),OnClick=function(v)local o=client.UI.Make("\067\111\108\111\114\080\105\099\107\101\114",{Color=Color3.new(0,0,0)})v.BackgroundColor3=o K.BackgroundColor3=o end}}})local G=z:Add("\084\101\120\116\076\097\098\101\108",{Text="  \083\105\122\101\058 ",BackgroundTransparency=0,Size=UDim2.new(0,70,1,-8),Position=UDim2.new(0,100,0,4);TextXAlignment="\076\101\102\116",Children={TextBox={Text="",PlaceholderText="\052",Size=UDim2.new(0,26,1,0);Position=UDim2.new(1,-31,0,0),BackgroundTransparency=1;TextXAlignment="\082\105\103\104\116",ClipsDescendants=true,TextChanged=function(v,o,F)if tonumber(v)then if not(tonumber(v)<100)then K.Size=UDim2.new(0,99,0,99)return end else return end K.Size=UDim2.new(0,v,0,v)end}}})F:Ready()service.UserInputService.InputBegan:Connect(function(v)if v.UserInputType==Enum.UserInputType.MouseButton1 then L=true end end)service.UserInputService.InputEnded:Connect(function(v)if v.UserInputType==Enum.UserInputType.MouseButton1 then L=false end end)end


client = nil;
service = nil;
return function(p1)
	local l__mouse__1 = service.Players.LocalPlayer:GetMouse();
	local v2 = client.UI.Make("Window", {
		Name = "Paint", 
		Title = "Paint", 
		Icon = client.MatIcons.Palette
	});
	local v3 = v2:Add("Frame", {
		Size = UDim2.new(1, 0, 0, 28), 
		Position = UDim2.new(0, 0, 0, 0), 
		BackgroundTransparency = 1
	});
	local v4 = v3:Add("TextLabel", {
		Size = UDim2.new(0, 100, 1, -8), 
		Position = UDim2.new(1, -180, 0, 4), 
		Text = "Pixels: 0", 
		TextXAlignment = "Right", 
		BackgroundTransparency = 1
	});
	local v5 = v2:Add("ScrollingFrame", {
		Position = UDim2.new(0, 0, 0, 30), 
		Size = UDim2.new(1, 0, 1, -30), 
		BackgroundColor3 = Color3.new(1, 1, 1), 
		ClipsDescendants = true
	});
	local u1 = v5:Add("Frame", {
		Position = UDim2.new(0, 0, 0, 0), 
		Size = UDim2.new(0, 4, 0, 4), 
		BackgroundColor3 = Color3.new(0, 0, 0), 
		BackgroundTransparency = 0, 
		Visible = false
	});
	v5.MouseEnter:Connect(function()
		u1.Visible = true;
	end);
	v5.MouseLeave:Connect(function()
		u1.Visible = false;
	end);
	local u2 = false;
	v5.MouseMoved:Connect(function(p2, p3)
		local v6 = Vector2.new(math.abs(p2 - v5.AbsolutePosition.X), math.abs(p3 - v5.AbsolutePosition.Y - 36));
		u1.Position = UDim2.new(0, v6.X, 0, v6.Y);
		if u2 == false then
			return;
		end;
		local v7 = u1:Clone();
		v7.Name = "Pixel";
		v7.Parent = v5;
		v4.Text = "Pixels: " .. tostring(v4.Text:sub(9) + 1);
	end);
	local v8 = v3:Add("TextButton", {
		Size = UDim2.new(0, 70, 1, -8), 
		Position = UDim2.new(1, -75, 0, 4), 
		Text = "Clear", 
		TextXAlignment = "Center", 
		OnClick = function()
			for v9, v10 in pairs((v5:GetChildren())) do
				if v10.Name == "Pixel" then
					v10:Destroy();
				end;
			end;
			v4.Text = "Pixels: 0";
		end
	});
	v3:Add("TextLabel", {
		Text = " Color: ", 
		Size = UDim2.new(0, 90, 1, -8), 
		Position = UDim2.new(0, 5, 0, 4), 
		BackgroundTransparency = 0.25, 
		TextXAlignment = "Left", 
		Children = { {
				Class = "TextButton", 
				Text = "", 
				Size = UDim2.new(0, 40, 1, -6), 
				Position = UDim2.new(1, -45, 0, 3), 
				BackgroundColor3 = Color3.new(0, 0, 0), 
				TextTransparency = 0, 
				BackgroundTransparency = 0, 
				BorderPixelSize = 1, 
				BorderColor3 = Color3.fromRGB(100, 100, 100), 
				OnClick = function(p4)
					local v11 = client.UI.Make("ColorPicker", {
						Color = Color3.new(0, 0, 0)
					});
					p4.BackgroundColor3 = v11;
					u1.BackgroundColor3 = v11;
				end
			} }
	});
	local v12 = v3:Add("TextLabel", {
		Text = "  Size: ", 
		BackgroundTransparency = 0, 
		Size = UDim2.new(0, 70, 1, -8), 
		Position = UDim2.new(0, 100, 0, 4), 
		TextXAlignment = "Left", 
		Children = {
			TextBox = {
				Text = "", 
				PlaceholderText = "4", 
				Size = UDim2.new(0, 26, 1, 0), 
				Position = UDim2.new(1, -31, 0, 0), 
				BackgroundTransparency = 1, 
				TextXAlignment = "Right", 
				ClipsDescendants = true, 
				TextChanged = function(p5, p6, p7)
					if tonumber(p5) then
						if not (tonumber(p5) < 100) then
							u1.Size = UDim2.new(0, 99, 0, 99);
							return;
						end;
					else
						return;
					end;
					u1.Size = UDim2.new(0, p5, 0, p5);
				end
			}
		}
	});
	v2:Ready();
	service.UserInputService.InputBegan:Connect(function(p8)
		if p8.UserInputType == Enum.UserInputType.MouseButton1 then
			u2 = true;
		end;
	end);
	service.UserInputService.InputEnded:Connect(function(p9)
		if p9.UserInputType == Enum.UserInputType.MouseButton1 then
			u2 = false;
		end;
	end);
end;
