Advertisement
Eduardfabian21

Script executor | Roblox gui

Jan 31st, 2022 (edited)
621
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.66 KB | None | 0 0
  1. -- Also load string https://pastebin.com/ngQgRnWQ
  2. -- Objects
  3.  
  4. local ScreenGui = Instance.new("ScreenGui")
  5. local Executor = Instance.new("Frame")
  6. local Bar1 = Instance.new("Frame")
  7. local Bar2 = Instance.new("Frame")
  8. local Title = Instance.new("TextLabel")
  9. local exitbutton = Instance.new("TextButton")
  10. local Execute = Instance.new("TextButton")
  11. local Bar3 = Instance.new("Frame")
  12. local Clear = Instance.new("TextButton")
  13. local Bar4 = Instance.new("Frame")
  14. local ScrollingFrame = Instance.new("ScrollingFrame")
  15. local input = Instance.new("TextBox")
  16. local Open = Instance.new("TextButton")
  17. local Bar5 = Instance.new("Frame")
  18.  
  19. -- Properties
  20.  
  21. ScreenGui.Parent = game.Players.LocalPlayer.PlayerGui
  22. ScreenGui.ResetOnSpawn = false
  23.  
  24. Executor.Name = "Executor"
  25. Executor.Parent = ScreenGui
  26. Executor.Active = true
  27. Executor.BackgroundColor3 = Color3.new(0.101961, 0.101961, 0.101961)
  28. Executor.BorderSizePixel = 0
  29. Executor.Position = UDim2.new(0.25757575, 0, 0.133291811, 0)
  30. Executor.Size = UDim2.new(0, 668, 0, 460)
  31. Executor.Visible = false
  32.  
  33. Bar1.Name = "Bar1"
  34. Bar1.Parent = Executor
  35. Bar1.BackgroundColor3 = Color3.new(1, 1, 1)
  36. Bar1.BorderSizePixel = 0
  37. Bar1.Size = UDim2.new(0, 668, 0, 64)
  38.  
  39. Bar2.Name = "Bar2"
  40. Bar2.Parent = Executor
  41. Bar2.BackgroundColor3 = Color3.new(0.870588, 0.870588, 0.870588)
  42. Bar2.BorderSizePixel = 0
  43. Bar2.Position = UDim2.new(0, 0, 0.139130428, 0)
  44. Bar2.Size = UDim2.new(0, 668, 0, 6)
  45.  
  46. Title.Name = "Title"
  47. Title.Parent = Executor
  48. Title.BackgroundColor3 = Color3.new(1, 1, 1)
  49. Title.BackgroundTransparency = 1
  50. Title.BorderSizePixel = 0
  51. Title.Position = UDim2.new(-0.101796404, 0, -0.0380434766, 0)
  52. Title.Size = UDim2.new(0, 453, 0, 98)
  53. Title.Font = Enum.Font.SourceSansBold
  54. Title.FontSize = Enum.FontSize.Size60
  55. Title.Text = "Script Executor | By: eduardfabian21 | https://pastebin.com/0ipjZFxi"
  56. Title.TextColor3 = Color3.new(0.101961, 0.101961, 0.101961)
  57. Title.TextSize = 10
  58. Title.TextWrapped = true
  59.  
  60. exitbutton.Name = "exitbutton"
  61. exitbutton.Parent = Executor
  62. exitbutton.BackgroundColor3 = Color3.new(1, 1, 1)
  63. exitbutton.BackgroundTransparency = 1
  64. exitbutton.BorderSizePixel = 0
  65. exitbutton.Position = UDim2.new(0.915374339, 0, 0.0357302055, 0)
  66. exitbutton.Size = UDim2.new(0, 43, 0, 31)
  67. exitbutton.Font = Enum.Font.SourceSansBold
  68. exitbutton.FontSize = Enum.FontSize.Size48
  69. exitbutton.Text = "X"
  70. exitbutton.TextColor3 = Color3.new(0.101961, 0.101961, 0.101961)
  71. exitbutton.TextSize = 45
  72.  
  73. Execute.Name = "Execute"
  74. Execute.Parent = Executor
  75. Execute.BackgroundColor3 = Color3.new(1, 1, 1)
  76. Execute.BorderColor3 = Color3.new(0.454902, 0.635294, 0.286275)
  77. Execute.BorderSizePixel = 0
  78. Execute.Position = UDim2.new(0.208244547, 0, 0.84927547, 0)
  79. Execute.Size = UDim2.new(0, 182, 0, 49)
  80. Execute.Font = Enum.Font.SourceSansBold
  81. Execute.FontSize = Enum.FontSize.Size36
  82. Execute.Text = "Execute"
  83. Execute.TextColor3 = Color3.new(0.101961, 0.101961, 0.101961)
  84. Execute.TextSize = 35
  85. Execute.TextWrapped = true
  86.  
  87. Bar3.Name = "Bar3"
  88. Bar3.Parent = Executor
  89. Bar3.BackgroundColor3 = Color3.new(0.870588, 0.870588, 0.870588)
  90. Bar3.BorderSizePixel = 0
  91. Bar3.Position = UDim2.new(0.207436025, 0, 0.957525194, 0)
  92. Bar3.Size = UDim2.new(0, 182, 0, 7)
  93.  
  94. Clear.Name = "Clear"
  95. Clear.Parent = Executor
  96. Clear.BackgroundColor3 = Color3.new(1, 1, 1)
  97. Clear.BorderColor3 = Color3.new(0.454902, 0.635294, 0.286275)
  98. Clear.BorderSizePixel = 0
  99. Clear.Position = UDim2.new(0.52111882, 0, 0.84927547, 0)
  100. Clear.Size = UDim2.new(0, 182, 0, 49)
  101. Clear.Font = Enum.Font.SourceSansBold
  102. Clear.FontSize = Enum.FontSize.Size36
  103. Clear.Text = "Clear"
  104. Clear.TextColor3 = Color3.new(0.101961, 0.101961, 0.101961)
  105. Clear.TextSize = 35
  106. Clear.TextWrapped = true
  107.  
  108. Bar4.Name = "Bar4"
  109. Bar4.Parent = Executor
  110. Bar4.BackgroundColor3 = Color3.new(0.870588, 0.870588, 0.870588)
  111. Bar4.BorderSizePixel = 0
  112. Bar4.Position = UDim2.new(0.520310283, 0, 0.957525194, 0)
  113. Bar4.Size = UDim2.new(0, 182, 0, 7)
  114.  
  115. ScrollingFrame.Parent = Executor
  116. ScrollingFrame.BackgroundColor3 = Color3.new(1, 1, 1)
  117. ScrollingFrame.BorderSizePixel = 0
  118. ScrollingFrame.Position = UDim2.new(0.0479041934, 0, 0.191304341, 0)
  119. ScrollingFrame.Size = UDim2.new(0, 605, 0, 289)
  120. ScrollingFrame.CanvasSize = UDim2.new(0, 0, 100000, 0)
  121.  
  122. input.Name = "input"
  123. input.Parent = ScrollingFrame
  124. input.BackgroundColor3 = Color3.new(1, 1, 1)
  125. input.BackgroundTransparency = 1
  126. input.BorderSizePixel = 0
  127. input.Size = UDim2.new(0, 589, 0, 999)
  128. input.Font = Enum.Font.SourceSans
  129. input.FontSize = Enum.FontSize.Size24
  130. input.MultiLine = true
  131. input.Text = "print(\"Hello World!\")"
  132. input.TextColor3 = Color3.new(0.101961, 0.101961, 0.101961)
  133. input.TextSize = 20
  134. input.TextXAlignment = Enum.TextXAlignment.Left
  135. input.TextYAlignment = Enum.TextYAlignment.Top
  136.  
  137. Open.Name = "Open"
  138. Open.Parent = ScreenGui
  139. Open.BackgroundColor3 = Color3.new(0.101961, 0.101961, 0.101961)
  140. Open.BorderSizePixel = 0
  141. Open.Position = UDim2.new(0, 0, 0.516007543, 0)
  142. Open.Size = UDim2.new(0, 130, 0, 64)
  143. Open.Font = Enum.Font.SourceSansBold
  144. Open.FontSize = Enum.FontSize.Size36
  145. Open.Text = "Open"
  146. Open.TextColor3 = Color3.new(1, 1, 1)
  147. Open.TextSize = 35
  148.  
  149. Bar5.Name = "Bar5"
  150. Bar5.Parent = Open
  151. Bar5.BackgroundColor3 = Color3.new(0.870588, 0.870588, 0.870588)
  152. Bar5.BorderSizePixel = 0
  153. Bar5.Position = UDim2.new(0, 0, 0.890625, 0)
  154. Bar5.Size = UDim2.new(0, 130, 0, 7)
  155.  
  156. Execute.MouseButton1Down:connect(function()
  157. loadstring(input.Text)()
  158. print("User has Executed a Script")
  159. end)
  160.  
  161. Clear.MouseButton1Down:connect(function()
  162. input.Text = ""
  163. print("User has cleared the Executor Input")
  164. end)
  165.  
  166. Open.MouseButton1Down:connect(function()
  167. Executor.Visible = true
  168. Open.Visible = false
  169. end)
  170.  
  171. exitbutton.MouseButton1Down:connect(function()
  172. Executor.Visible = false
  173. Open.Visible = true
  174. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement