-- Decompiled with the Synapse X Luau decompiler.


client = nil;
service = nil;
return function(p1)
	local l__Color__1 = p1.Color;
	if l__Color__1 == "off" then
		client.UI.Remove("BubbleChat");
		return;
	end;
	local v2 = client.UI.Make("Window", {
		Name = "BubbleChat", 
		Title = "Bubble Chat", 
		Icon = client.MatIcons.Chat, 
		Size = { 260, 57 }, 
		Position = UDim2.new(0, 10, 1, -80), 
		AllowMultiple = false
	});
	if v2 then
		local v3 = v2:Add("TextBox", {
			Text = "Click here or press \";\" to chat", 
			PlaceholderText = "Click here or press \";\" to chat", 
			BackgroundTransparency = 1, 
			TextScaled = true, 
			TextSize = 20
		});
		v3.FocusLost:Connect(function(p2)
			if p2 and (service.Player.Character:FindFirstChild("Head") and l__Color__1 and v3.Text ~= "Click here or press \";\" to chat") then
				if #v3.Text > 0 then
					service.ChatService:Chat(service.Player.Character.Head, service.LaxFilter(v3.Text), l__Color__1);
				end;
				v3.Text = "Click here or press \";\" to chat";
			end;
		end);
		v2:BindEvent(service.UserInputService.InputBegan, function(p3, p4)
			if not p4 and p3.UserInputType == Enum.UserInputType.Keyboard and p3.KeyCode == Enum.KeyCode.Semicolon then
				service.RunService.RenderStepped:Wait();
				v3:CaptureFocus();
			end;
		end);
		local l__gTable__4 = v2.gTable;
		v2:Ready();
	end;
end;
