-- LocalScript dentro de StarterGui local player = game.Players.LocalPlayer local screenGui = Instance.new("ScreenGui") screenGui.Parent = player:WaitForChild("PlayerGui") -- Variáveis de controle local menuOpened = true local menuName = "PauloKetchup" -- Criando o menu (Frame principal) local menuFrame = Instance.new("Frame") menuFrame.Size = UDim2.new(0, 350, 0, 450) -- Tamanho do menu menuFrame.Position = UDim2.new(0, 20, 0.5, -225) -- À esquerda, centralizado verticalmente menuFrame.BackgroundColor3 = Color3.fromRGB(40, 40, 40) -- Fundo cinza escuro menuFrame.BorderSizePixel = 0 menuFrame.Visible = menuOpened menuFrame.Active = true -- Permite interação com o menu menuFrame.Draggable = true -- Torna o menu arrastável menuFrame.Parent = screenGui -- Criando o canto arredondado para o menu local menuCorner = Instance.new("UICorner") menuCorner.CornerRadius = UDim.new(0, 15) -- Bordas arredondadas menuCorner.Parent = menuFrame -- Criando o título do menu local titleLabel = Instance.new("TextLabel") titleLabel.Size = UDim2.new(1, 0, 0, 60) -- Título ocupa o topo titleLabel.Position = UDim2.new(0, 0, 0, 0) titleLabel.BackgroundColor3 = Color3.fromRGB(60, 60, 60) -- Fundo do título mais claro titleLabel.BorderSizePixel = 0 titleLabel.Text = menuName titleLabel.Font = Enum.Font.GothamBold titleLabel.TextSize = 28 titleLabel.TextColor3 = Color3.fromRGB(255, 255, 255) -- Texto branco titleLabel.Parent = menuFrame -- Criando o canto arredondado para o título local titleCorner = Instance.new("UICorner") titleCorner.CornerRadius = UDim.new(0, 15) titleCorner.Parent = titleLabel -- Adicionando uma imagem ao menu local menuImage = Instance.new("ImageLabel") menuImage.Size = UDim2.new(0.8, 0, 0.4, 0) -- Proporção da imagem menuImage.Position = UDim2.new(0.1, 0, 0.15, 0) -- Centralizado dentro do menu menuImage.BackgroundTransparency = 1 -- Sem fundo menuImage.Image = "rbxassetid://1234567890" -- Substitua pelo ID da sua imagem menuImage.Parent = menuFrame -- Criando o botão "Sair" local leaveButton = Instance.new("TextButton") leaveButton.Size = UDim2.new(0.8, 0, 0, 50) -- Botão dentro do menu leaveButton.Position = UDim2.new(0.1, 0, 0.7, 0) -- Mais abaixo no menu leaveButton.BackgroundColor3 = Color3.fromRGB(255, 75, 75) -- Fundo vermelho moderno leaveButton.TextColor3 = Color3.fromRGB(255, 255, 255) -- Texto branco leaveButton.Text = "Sair" leaveButton.Font = Enum.Font.GothamBold leaveButton.TextSize = 24 leaveButton.Parent = menuFrame -- Criando o canto arredondado para o botão local leaveButtonCorner = Instance.new("UICorner") leaveButtonCorner.CornerRadius = UDim.new(0, 10) leaveButtonCorner.Parent = leaveButton -- Criando o botão de abrir/fechar o menu local toggleButton = Instance.new("TextButton") toggleButton.Size = UDim2.new(0, 50, 0, 50) toggleButton.Position = UDim2.new(0, 20, 0, 20) -- No canto superior esquerdo da tela toggleButton.BackgroundColor3 = Color3.fromRGB(70, 70, 70) -- Fundo cinza médio toggleButton.BorderSizePixel = 0 toggleButton.Text = "☰" -- Ícone de menu toggleButton.Font = Enum.Font.GothamBold toggleButton.TextSize = 24 toggleButton.TextColor3 = Color3.fromRGB(255, 255, 255) -- Texto branco toggleButton.Parent = screenGui -- Criando o canto arredondado para o botão de alternância local toggleCorner = Instance.new("UICorner") toggleCorner.CornerRadius = UDim.new(0, 10) toggleCorner.Parent = toggleButton -- Função para alternar o menu local function toggleMenu() menuOpened = not menuOpened menuFrame.Visible = menuOpened end -- Conectar o evento do botão de abrir/fechar toggleButton.MouseButton1Click:Connect(toggleMenu) -- Função para fechar o jogo local function leaveGame() player:Kick("Você saiu do jogo.") -- Kickar o jogador local end -- Conectar o evento do botão "Sair" leaveButton.MouseButton1Click:Connect(leaveGame)