Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Menu = Instance.new("ScreenGui")
- Menu.Name = "ExecutorMenu"
- Menu.Parent = game:GetService("CoreGui")
- local Frame = Instance.new("Frame")
- Frame.BackgroundTransparency = 0.5
- Frame.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2) -- Cor cinza
- Frame.Size = UDim2.new(0.3, 0, 0.5, 0) -- Tamanho do executor
- Frame.Position = UDim2.new(0.7, 0, 0.25, 0) -- Posição do executor
- Frame.Active = true
- Frame.Draggable = true
- Frame.Visible = false -- Inicia oculto
- Frame.Parent = Menu
- local TextBox = Instance.new("TextBox")
- TextBox.Size = UDim2.new(0.9, 0, 0.6, 0)
- TextBox.Position = UDim2.new(0.05, 0, 0.15, 0)
- TextBox.BackgroundColor3 = Color3.new(0, 0, 0)
- TextBox.TextColor3 = Color3.new(0, 0, 1) -- Texto azul
- TextBox.TextWrapped = true
- TextBox.TextScaled = true
- TextBox.ClearTextOnFocus = false
- TextBox.Parent = Frame
- local ExecutarButton = Instance.new("TextButton")
- ExecutarButton.Text = "Executar"
- ExecutarButton.Size = UDim2.new(0.4, 0, 0.15, 0)
- ExecutarButton.Position = UDim2.new(0.05, 0, 0.8, 0)
- ExecutarButton.BackgroundColor3 = Color3.new(0, 0, 0)
- ExecutarButton.TextColor3 = Color3.new(1, 0, 0) -- Texto vermelho
- ExecutarButton.Parent = Frame
- local FecharButton = Instance.new("TextButton")
- FecharButton.Text = "Fechar Menu"
- FecharButton.Size = UDim2.new(0.8, 0, 0.15, 0)
- FecharButton.Position = UDim2.new(0.1, 0, 0.95, 0)
- FecharButton.BackgroundColor3 = Color3.new(0, 0, 0)
- FecharButton.TextColor3 = Color3.new(1, 0, 0) -- Texto vermelho
- FecharButton.Parent = Frame
- local OpenButton = Instance.new("TextButton")
- OpenButton.Text = "▲"
- OpenButton.Size = UDim2.new(0.1, 0, 0.1, 0)
- OpenButton.Position = UDim2.new(0.9, 0, 0, 0)
- OpenButton.BackgroundColor3 = Color3.new(0, 0, 0)
- OpenButton.TextColor3 = Color3.new(1, 1, 1) -- Texto branco
- OpenButton.FontSize = Enum.FontSize.Size24
- OpenButton.Parent = Menu
- local function ExecutarScript(script)
- local f, err = loadstring(script)
- if f then
- local environment = getfenv(f)
- setfenv(f, environment)
- pcall(f)
- print("\27[34mScript executado") -- Texto azul
- else
- print("\27[31mErro no script:", err) -- Texto vermelho
- end
- end
- local function FecharMenu()
- Frame.Visible = false
- OpenButton.Visible = true
- end
- local function AbrirMenu()
- Frame.Visible = true
- OpenButton.Visible = false
- end
- ExecutarButton.MouseButton1Click:Connect(function()
- local script = TextBox.Text
- ExecutarScript(script)
- end)
- FecharButton.MouseButton1Click:Connect(function()
- FecharMenu()
- end)
- OpenButton.MouseButton1Click:Connect(function()
- AbrirMenu()
- end)
- Menu.Parent = game:GetService("CoreGui")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement