local RS = game:GetService("ReplicatedStorage") local Players = game:GetService("Players") local event = RS:WaitForChild("FunnyHubEvent") local gui = script.Parent -- 😂 OPEN BUTTON local open = Instance.new("TextButton", gui) open.Size = UDim2.new(0,130,0,45) open.Position = UDim2.new(0,10,1,-55) open.Text = "😂 FUNNY HUB" -- 🎨 MAIN PANEL local frame = Instance.new("Frame", gui) frame.Size = UDim2.new(0,450,0,280) frame.Position = UDim2.new(0.5,-225,0.5,-140) frame.BackgroundColor3 = Color3.fromRGB(20,20,20) frame.Visible = false -- TITLE local title = Instance.new("TextLabel", frame) title.Size = UDim2.new(1,0,0,40) title.Text = "😂 FUNNY HUB 😂" title.TextScaled = true title.BackgroundTransparency = 1 title.TextColor3 = Color3.fromRGB(255,255,255) -- PLAYER LIST local list = Instance.new("ScrollingFrame", frame) list.Size = UDim2.new(0,200,1,-50) list.Position = UDim2.new(0,10,0,45) local selected = nil -- ACTIONS local actions = { {"Kick 😂","kick"}, {"Ban 💀","ban"}, {"Give Coins 💰","coins"}, {"Teleport 🚀","tp"}, {"God Mode 😈","god"} } for i,data in pairs(actions) do local name, action = data[1], data[2] local b = Instance.new("TextButton", frame) b.Size = UDim2.new(0,210,0,35) b.Position = UDim2.new(0,230,0,50 + (i-1)*45) b.Text = name b.MouseButton1Click:Connect(function() if selected then event:FireServer(action, selected) end end) end -- TOGGLE open.MouseButton1Click:Connect(function() frame.Visible = not frame.Visible end) -- PLAYER LIST local function refresh() for _,v in pairs(list:GetChildren()) do if v:IsA("TextButton") then v:Destroy() end end local y = 0 for _,p in pairs(Players:GetPlayers()) do local b = Instance.new("TextButton", list) b.Size = UDim2.new(1,0,0,30) b.Position = UDim2.new(0,0,0,y) b.Text = p.Name b.MouseButton1Click:Connect(function() selected = p.Name end) y += 30 end end Players.PlayerAdded:Connect(refresh) Players.PlayerRemoving:Connect(refresh) refresh()