Advertisement
Icarogamer441

Fe script executor v3 by me

Jun 3rd, 2023 (edited)
409
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.63 KB | None | 0 0
  1. local Menu = Instance.new("ScreenGui")
  2. Menu.Name = "ExecutorMenu"
  3. Menu.Parent = game:GetService("CoreGui")
  4.  
  5. local Frame = Instance.new("Frame")
  6. Frame.BackgroundTransparency = 0.5
  7. Frame.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2) -- Cor cinza
  8. Frame.Size = UDim2.new(0.3, 0, 0.5, 0) -- Tamanho do executor
  9. Frame.Position = UDim2.new(0.7, 0, 0.25, 0) -- Posição do executor
  10. Frame.Active = true
  11. Frame.Draggable = true
  12. Frame.Visible = false -- Inicia oculto
  13. Frame.Parent = Menu
  14.  
  15. local TextBox = Instance.new("TextBox")
  16. TextBox.Size = UDim2.new(0.9, 0, 0.6, 0)
  17. TextBox.Position = UDim2.new(0.05, 0, 0.15, 0)
  18. TextBox.BackgroundColor3 = Color3.new(0, 0, 0)
  19. TextBox.TextColor3 = Color3.new(0, 0, 1) -- Texto azul
  20. TextBox.TextWrapped = true
  21. TextBox.TextScaled = true
  22. TextBox.ClearTextOnFocus = false
  23. TextBox.Parent = Frame
  24.  
  25. local ExecutarButton = Instance.new("TextButton")
  26. ExecutarButton.Text = "Executar"
  27. ExecutarButton.Size = UDim2.new(0.4, 0, 0.15, 0)
  28. ExecutarButton.Position = UDim2.new(0.05, 0, 0.8, 0)
  29. ExecutarButton.BackgroundColor3 = Color3.new(0, 0, 0)
  30. ExecutarButton.TextColor3 = Color3.new(1, 0, 0) -- Texto vermelho
  31. ExecutarButton.Parent = Frame
  32.  
  33. local FecharButton = Instance.new("TextButton")
  34. FecharButton.Text = "Fechar Menu"
  35. FecharButton.Size = UDim2.new(0.8, 0, 0.15, 0)
  36. FecharButton.Position = UDim2.new(0.1, 0, 0.95, 0)
  37. FecharButton.BackgroundColor3 = Color3.new(0, 0, 0)
  38. FecharButton.TextColor3 = Color3.new(1, 0, 0) -- Texto vermelho
  39. FecharButton.Parent = Frame
  40.  
  41. local OpenButton = Instance.new("TextButton")
  42. OpenButton.Text = "▲"
  43. OpenButton.Size = UDim2.new(0.1, 0, 0.1, 0)
  44. OpenButton.Position = UDim2.new(0.9, 0, 0, 0)
  45. OpenButton.BackgroundColor3 = Color3.new(0, 0, 0)
  46. OpenButton.TextColor3 = Color3.new(1, 1, 1) -- Texto branco
  47. OpenButton.FontSize = Enum.FontSize.Size24
  48. OpenButton.Parent = Menu
  49.  
  50. local function ExecutarScript(script)
  51. local f, err = loadstring(script)
  52. if f then
  53. local environment = getfenv(f)
  54. setfenv(f, environment)
  55. pcall(f)
  56. print("\27[34mScript executado") -- Texto azul
  57. else
  58. print("\27[31mErro no script:", err) -- Texto vermelho
  59. end
  60. end
  61.  
  62. local function FecharMenu()
  63. Frame.Visible = false
  64. OpenButton.Visible = true
  65. end
  66.  
  67. local function AbrirMenu()
  68. Frame.Visible = true
  69. OpenButton.Visible = false
  70. end
  71.  
  72. ExecutarButton.MouseButton1Click:Connect(function()
  73. local script = TextBox.Text
  74. ExecutarScript(script)
  75. end)
  76.  
  77. FecharButton.MouseButton1Click:Connect(function()
  78. FecharMenu()
  79. end)
  80.  
  81. OpenButton.MouseButton1Click:Connect(function()
  82. AbrirMenu()
  83. end)
  84.  
  85. Menu.Parent = game:GetService("CoreGui")
  86.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement