local player = game.Players.LocalPlayer local UIS = game:GetService("UserInputService") local event = game.ReplicatedStorage:WaitForChild("AdminEvent") local DONO = "macuin_000" -- mesmo nome do servidor -- Se não for o dono, não cria painel if player.Name ~= DONO then return end local gui = Instance.new("ScreenGui") gui.Name = "AdminPanel" gui.ResetOnSpawn = false gui.Parent = player:WaitForChild("PlayerGui") gui.Enabled = false local frame = Instance.new("Frame") frame.Parent = gui frame.Size = UDim2.new(0,300,0,250) frame.Position = UDim2.new(0.5,-150,0.5,-125) frame.BackgroundColor3 = Color3.fromRGB(25,25,25) frame.BorderSizePixel = 0 local corner = Instance.new("UICorner") corner.Parent = frame corner.CornerRadius = UDim.new(0,15) local textbox = Instance.new("TextBox") textbox.Parent = frame textbox.Size = UDim2.new(0.8,0,0,40) textbox.Position = UDim2.new(0.1,0,0.1,0) textbox.PlaceholderText = "Nome do jogador" textbox.BackgroundColor3 = Color3.fromRGB(40,40,40) textbox.TextColor3 = Color3.new(1,1,1) textbox.TextScaled = true local function criarBotao(texto, posY, acao) local btn = Instance.new("TextButton") btn.Parent = frame btn.Size = UDim2.new(0.8,0,0,40) btn.Position = UDim2.new(0.1,0,posY,0) btn.Text = texto btn.BackgroundColor3 = Color3.fromRGB(60,0,0) btn.TextColor3 = Color3.new(1,1,1) btn.TextScaled = true btn.MouseButton1Click:Connect(function() if textbox.Text ~= "" then event:FireServer(acao, textbox.Text) else event:FireServer(acao) end end) end criarBotao("KILL", 0.3, "kill") criarBotao("SPEED", 0.5, "speed") criarBotao("GOD", 0.7, "god") -- Abrir/Fechar com F UIS.InputBegan:Connect(function(input, gpe) if gpe then return end if input.KeyCode == Enum.KeyCode.F then gui.Enabled = not gui.Enabled end end)