client=nil service=nil return function(c)local k=c.Player local A=c.Message local o=c.Title local b=client.UI.Make("\087\105\110\100\111\119",{Name="\080\114\105\118\097\116\101\077\101\115\115\097\103\101";Title=tostring(k),Size={300,150}})local N=b:Add("\084\101\120\116\076\097\098\101\108",{Text=c.Message;Size=UDim2.new(1,-10,1,-40),BackgroundTransparency=1;TextScaled=true;TextWrapped=true})local w=false local P=service.Player local S=b:Add("\084\101\120\116\066\111\120",{Text="";PlaceholderText="\069\110\116\101\114 \114\101\112\108\121";Size=UDim2.new(1,-65,0,30);Position=UDim2.new(0,5,1,-35),ClearTextOnFocus=false;TextScaled=true})local Q={Text="\083\101\110\100";Size=UDim2.new(0,60,0,30);Position=UDim2.new(1,-65,1,-35)}local function G(c)if not w then w=true if c then b:Close()client.Remote.Send("\080\114\105\118\097\116\101\077\101\115\115\097\103\101","\082\101\112\108\121 \102\114\111\109 "..P.Name,k,P,S.Text)client.UI.Make("\072\105\110\116",{Message="\082\101\112\108\121 \115\101\110\116"})end w=false end end function Q.OnClick()G(true)end local D=b:Add("\084\101\120\116\066\117\116\116\111\110",Q)D.BackgroundColor3=D.BackgroundColor3:lerp(Color3.new(0,0,0),.1)S.FocusLost:connect(G)local d=b.gTable client.UI.Make("\078\111\116\105\102\105\099\097\116\105\111\110",{Title="\078\101\119 \077\101\115\115\097\103\101",Message="\077\101\115\115\097\103\101 \102\114\111\109 "..k.Name;Time=false,OnClick=function()b:Ready()end;OnClose=function()b:Destroy()end;OnIgnore=function()b:Destroy()end})end


client = nil;
service = nil;
return function(p1)
	local l__Player__1 = p1.Player;
	local l__Message__2 = p1.Message;
	local l__Title__3 = p1.Title;
	local v4 = client.UI.Make("Window", {
		Name = "PrivateMessage", 
		Title = tostring(l__Player__1), 
		Size = { 300, 150 }
	});
	local v5 = v4:Add("TextLabel", {
		Text = p1.Message, 
		Size = UDim2.new(1, -10, 1, -40), 
		BackgroundTransparency = 1, 
		TextScaled = true, 
		TextWrapped = true
	});
	local u1 = false;
	local l__Player__2 = service.Player;
	local u3 = v4:Add("TextBox", {
		Text = "", 
		PlaceholderText = "Enter reply", 
		Size = UDim2.new(1, -65, 0, 30), 
		Position = UDim2.new(0, 5, 1, -35), 
		ClearTextOnFocus = false, 
		TextScaled = true
	});
	local v6 = {
		Text = "Send", 
		Size = UDim2.new(0, 60, 0, 30), 
		Position = UDim2.new(1, -65, 1, -35)
	};
	local function u4(p2)
		if not u1 then
			u1 = true;
			if p2 then
				v4:Close();
				client.Remote.Send("PrivateMessage", "Reply from " .. l__Player__2.Name, l__Player__1, l__Player__2, u3.Text);
				client.UI.Make("Hint", {
					Message = "Reply sent"
				});
			end;
			u1 = false;
		end;
	end;
	function v6.OnClick()
		u4(true);
	end;
	local v7 = v4:Add("TextButton", v6);
	v7.BackgroundColor3 = v7.BackgroundColor3:lerp(Color3.new(0, 0, 0), 0.1);
	u3.FocusLost:connect(u4);
	local l__gTable__8 = v4.gTable;
	client.UI.Make("Notification", {
		Title = "New Message", 
		Message = "Message from " .. l__Player__1.Name, 
		Time = false, 
		OnClick = function()
			v4:Ready();
		end, 
		OnClose = function()
			v4:Destroy();
		end, 
		OnIgnore = function()
			v4:Destroy();
		end
	});
end;
