Swipe to scroll
local Players = game:GetService("Players") local TextChatService = game:GetService("TextChatService") local ReplicatedStorage = game:GetService("ReplicatedStorage") local TweenService = game:GetService("TweenService") local localPlayer = Players.LocalPlayer local playerGui = localPlayer:WaitForChild("PlayerGui") local function sendChatMessage(message) if TextChatService.ChatVersion == Enum.ChatVersion.TextChatService then local generalChannel = TextChatService.TextChannels:FindFirstChild("RBXGeneral") if generalChannel then generalChannel:SendAsync(message) end else local sayMessageRequest = ReplicatedStorage:FindFirstChild("SayMessageRequest", true) if sayMessageRequest and sayMessageRequest:IsA("RemoteEvent") then sayMessageRequest:FireServer(message, "All") end end end local screenGui = Instance.new("ScreenGui") screenGui.Name = "QuickWordsHubGui" screenGui.ResetOnSpawn = false screenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling local mainFrame = Instance.new("Frame") mainFrame.Size = UDim2.new(0, 360, 0, 440) mainFrame.Position = UDim2.new(0.5, -180, 0.5, -220) mainFrame.BackgroundColor3 = Color3.fromRGB(24, 24, 32) mainFrame.Active = true mainFrame.Draggable = true mainFrame.Parent = screenGui local uiCorner = Instance.new("UICorner") uiCorner.CornerRadius = UDim.new(0, 12) uiCorner.Parent = mainFrame local titleLabel = Instance.new("TextLabel") titleLabel.Size = UDim2.new(1, 0, 0, 45) titleLabel.BackgroundTransparency = 1 titleLabel.Text = "⚡ Quick Words Hub" titleLabel.TextColor3 = Color3.fromRGB(255, 255, 255) titleLabel.TextSize = 18 titleLabel.Font = Enum.Font.GothamBold titleLabel.Parent = mainFrame local tabContainer = Instance.new("Frame") tabContainer.Size = UDim2.new(0.9, 0, 0, 35) tabContainer.Position = UDim2.new(0.05, 0, 0, 45) tabContainer.BackgroundTransparency = 1 tabContainer.Parent = mainFrame local tabLayout = Instance.new("UIListLayout") tabLayout.FillDirection = Enum.FillDirection.Horizontal tabLayout.SortOrder = Enum.SortOrder.LayoutOrder tabLayout.Padding = UDim.new(0, 5) tabLayout.Parent = tabContainer local scrollFrame = Instance.new("ScrollingFrame") scrollFrame.Size = UDim2.new(0.9, 0, 0.72, 0) scrollFrame.Position = UDim2.new(0.05, 0, 0, 90) scrollFrame.BackgroundTransparency = 1 scrollFrame.ScrollBarThickness = 4 scrollFrame.Parent = mainFrame local uiListLayout = Instance.new("UIListLayout") uiListLayout.SortOrder = Enum.SortOrder.LayoutOrder uiListLayout.Padding = UDim.new(0, 6) uiListLayout.Parent = scrollFrame uiListLayout:GetPropertyChangedSignal("AbsoluteContentSize"):Connect(function() scrollFrame.CanvasSize = UDim2.new(0, 0, 0, uiListLayout.AbsoluteContentSize.Y + 10) end) local activeTab = "Greetings" local registeredButtons = {} local function refreshVisibility() for _, item in ipairs(registeredButtons) do item.Button.Visible = (item.Tab == activeTab) end end local tabButtons = {} local function createTab(tabName, order) local tabBtn = Instance.new("TextButton") tabBtn.Size = UDim2.new(0.31, 0, 1, 0) tabBtn.Text = tabName tabBtn.TextSize = 12 tabBtn.Font = Enum.Font.GothamBold tabBtn.LayoutOrder = order tabBtn.Parent = tabContainer local c = Instance.new("UICorner") c.CornerRadius = UDim.new(0, 6) c.Parent = tabBtn tabButtons[tabName] = tabBtn local function updateTabStyles() for name, btn in pairs(tabButtons) do if name == activeTab then btn.BackgroundColor3 = Color3.fromRGB(0, 162, 255) btn.TextColor3 = Color3.fromRGB(255, 255, 255) else btn.BackgroundColor3 = Color3.fromRGB(38, 38, 50) btn.TextColor3 = Color3.fromRGB(180, 180, 180) end end end tabBtn.MouseButton1Click:Connect(function() activeTab = tabName updateTabStyles() refreshVisibility() end) updateTabStyles() end createTab("Greetings", 1) createTab("Gaming", 2) createTab("Answers", 3) local function createButton(tabName, text, callback, order) local btn = Instance.new("TextButton") btn.Size = UDim2.new(1, -6, 0, 36) btn.BackgroundColor3 = Color3.fromRGB(44, 44, 58) btn.Text = text btn.TextColor3 = Color3.fromRGB(240, 240
Comments 2