client=nil service=nil return function(Q)local A=Q.Player local P=Q.Message local V=Q.Title local x=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(A),Size={300,150}})local h=x:Add("\084\101\120\116\076\097\098\101\108",{Text=Q.Message,Size=UDim2.new(1,-10,1,-40);BackgroundTransparency=1;TextScaled=true,TextWrapped=true})local X=false local K=service.Player local H=x: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 i={Text="\083\101\110\100",Size=UDim2.new(0,60,0,30);Position=UDim2.new(1,-65,1,-35)}local function g(Q)if not X then X=true if Q then x: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 "..K.Name,A,K,H.Text)client.UI.Make("\072\105\110\116",{Message="\082\101\112\108\121 \115\101\110\116"})end X=false end end function i.OnClick()g(true)end local p=x:Add("\084\101\120\116\066\117\116\116\111\110",i)p.BackgroundColor3=p.BackgroundColor3:lerp(Color3.new(0,0,0),.1)H.FocusLost:connect(g)local O=x.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 "..A.Name;Time=false;OnClick=function()x:Ready()end;OnClose=function()x:Destroy()end,OnIgnore=function()x:Destroy()end})end
-- Decompiled with the Synapse X Luau decompiler.

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
