Advertisement
gray_alli28codesrbx

Script Executor GUI

Sep 3rd, 2018
7,720
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.62 KB | None | 0 0
  1. print("Execute GUI: Made With GUI To Lua By TheDarkGamer/gray_alli28")
  2. --hi
  3. -- Farewell Infortality.
  4. -- Version: 2.82
  5. -- Instances:
  6. local ExecuteGUI = Instance.new("ScreenGui")
  7. local Detector = Instance.new("TextButton")
  8. local CodeBox = Instance.new("TextBox")
  9. local Drag = Instance.new("TextButton")
  10. local Corner = Instance.new("Frame")
  11. local Corner_2 = Instance.new("Frame")
  12. local Corner_3 = Instance.new("Frame")
  13. local Corner_4 = Instance.new("Frame")
  14. local ResizeR = Instance.new("TextButton")
  15. local ResizeL = Instance.new("TextButton")
  16. local ResizeR_2 = Instance.new("TextButton")
  17. local Corner_5 = Instance.new("Frame")
  18. local Corner_6 = Instance.new("Frame")
  19. local Corner_7 = Instance.new("Frame")
  20. local Corner_8 = Instance.new("Frame")
  21. local ResizeL_2 = Instance.new("TextButton")
  22. local MainFrame = Instance.new("Frame")
  23. local Close = Instance.new("TextButton")
  24. local Open = Instance.new("TextButton")
  25. local Execute = Instance.new("TextButton")
  26. local TextLabel = Instance.new("TextLabel")
  27. local TextLabel_2 = Instance.new("TextLabel")
  28. --Properties:
  29. ExecuteGUI.Name = "Execute GUI"
  30. ExecuteGUI.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  31.  
  32. Detector.Name = "Detector"
  33. Detector.Parent = ExecuteGUI
  34. Detector.BackgroundColor3 = Color3.new(0.878431, 0.878431, 0.878431)
  35. Detector.BackgroundTransparency = 1
  36. Detector.Position = UDim2.new(-1, -255, -1, 370)
  37. Detector.Size = UDim2.new(3, -30, 3, -20)
  38. Detector.AutoButtonColor = false
  39. Detector.Text = ""
  40. Detector.TextColor3 = Color3.new(0, 0, 0)
  41.  
  42. CodeBox.Name = "CodeBox"
  43. CodeBox.Parent = ExecuteGUI
  44. CodeBox.Active = false
  45. CodeBox.BackgroundColor3 = Color3.new(1, 1, 1)
  46. CodeBox.BorderColor3 = Color3.new(0.819608, 0.819608, 0.819608)
  47. CodeBox.Position = UDim2.new(0, 100, 0, 200)
  48. CodeBox.Size = UDim2.new(0, 301, 0, 311)
  49. CodeBox.Visible = false
  50. CodeBox.MultiLine = true
  51. CodeBox.Text = "print(\"Your code here!\")"
  52. CodeBox.TextSize = 9
  53. CodeBox.TextStrokeColor3 = Color3.new(0.917647, 0.917647, 0.917647)
  54. CodeBox.TextStrokeTransparency = 0
  55. CodeBox.TextWrapped = true
  56. CodeBox.TextXAlignment = Enum.TextXAlignment.Left
  57. CodeBox.TextYAlignment = Enum.TextYAlignment.Top
  58.  
  59. Drag.Name = "Drag"
  60. Drag.Parent = CodeBox
  61. Drag.BackgroundColor3 = Color3.new(0.870588, 0.870588, 0.870588)
  62. Drag.BorderColor3 = Color3.new(0.686275, 0.686275, 0.686275)
  63. Drag.Position = UDim2.new(0, 0, 0, -20)
  64. Drag.Size = UDim2.new(1, 0, 0, 20)
  65. Drag.ZIndex = 2
  66. Drag.AutoButtonColor = false
  67. Drag.Font = Enum.Font.SourceSansBold
  68. Drag.Text = "1337_Pwnz0r's Script Executor"
  69. Drag.TextColor3 = Color3.new(1, 1, 1)
  70. Drag.TextScaled = true
  71. Drag.TextStrokeTransparency = 0
  72. Drag.TextWrapped = true
  73.  
  74. Corner.Name = "Corner"
  75. Corner.Parent = Drag
  76. Corner.BackgroundColor3 = Color3.new(0.870588, 0.870588, 0.870588)
  77. Corner.BorderSizePixel = 0
  78. Corner.Position = UDim2.new(0, 3, 0, 3)
  79. Corner.Size = UDim2.new(0, 5, 0, 5)
  80. Corner.ZIndex = 3
  81.  
  82. Corner_2.Name = "Corner"
  83. Corner_2.Parent = Corner
  84. Corner_2.BackgroundColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  85. Corner_2.BorderSizePixel = 0
  86. Corner_2.Position = UDim2.new(0, -1, 0, -1)
  87. Corner_2.Size = UDim2.new(1, 1, 1, 1)
  88. Corner_2.ZIndex = 2
  89.  
  90. Corner_3.Name = "Corner"
  91. Corner_3.Parent = Drag
  92. Corner_3.BackgroundColor3 = Color3.new(0.87451, 0.87451, 0.87451)
  93. Corner_3.BorderSizePixel = 0
  94. Corner_3.Position = UDim2.new(1, -7, 0, 3)
  95. Corner_3.Size = UDim2.new(0, 5, 0, 5)
  96. Corner_3.ZIndex = 3
  97.  
  98. Corner_4.Name = "Corner"
  99. Corner_4.Parent = Corner_3
  100. Corner_4.BackgroundColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  101. Corner_4.BorderSizePixel = 0
  102. Corner_4.Position = UDim2.new(0, 0, 0, -1)
  103. Corner_4.Size = UDim2.new(1, 1, 1, 1)
  104. Corner_4.ZIndex = 2
  105.  
  106. ResizeR.Name = "ResizeR"
  107. ResizeR.Parent = Drag
  108. ResizeR.BackgroundColor3 = Color3.new(0.878431, 0.878431, 0.878431)
  109. ResizeR.BackgroundTransparency = 1
  110. ResizeR.Position = UDim2.new(1, -12, 0, -3)
  111. ResizeR.Size = UDim2.new(0, 15, 0, 15)
  112. ResizeR.ZIndex = 2
  113. ResizeR.AutoButtonColor = false
  114. ResizeR.Text = ""
  115. ResizeR.TextColor3 = Color3.new(0, 0, 0)
  116.  
  117. ResizeL.Name = "ResizeL"
  118. ResizeL.Parent = Drag
  119. ResizeL.BackgroundColor3 = Color3.new(0.882353, 0.882353, 0.882353)
  120. ResizeL.BackgroundTransparency = 1
  121. ResizeL.Position = UDim2.new(0, -3, 0, -3)
  122. ResizeL.Size = UDim2.new(0, 15, 0, 15)
  123. ResizeL.ZIndex = 2
  124. ResizeL.AutoButtonColor = false
  125. ResizeL.Text = ""
  126. ResizeL.TextColor3 = Color3.new(0, 0, 0)
  127.  
  128. ResizeR_2.Name = "ResizeR"
  129. ResizeR_2.Parent = CodeBox
  130. ResizeR_2.BackgroundColor3 = Color3.new(0.87451, 0.87451, 0.87451)
  131. ResizeR_2.BackgroundTransparency = 1
  132. ResizeR_2.Position = UDim2.new(1, -12, 1, -12)
  133. ResizeR_2.Size = UDim2.new(0, 15, 0, 15)
  134. ResizeR_2.ZIndex = 2
  135. ResizeR_2.AutoButtonColor = false
  136. ResizeR_2.Text = ""
  137. ResizeR_2.TextColor3 = Color3.new(0, 0, 0)
  138.  
  139. Corner_5.Name = "Corner"
  140. Corner_5.Parent = CodeBox
  141. Corner_5.BackgroundColor3 = Color3.new(1, 1, 1)
  142. Corner_5.BorderSizePixel = 0
  143. Corner_5.Position = UDim2.new(1, -7, 1, -7)
  144. Corner_5.Size = UDim2.new(0, 5, 0, 5)
  145. Corner_5.ZIndex = 3
  146.  
  147. Corner_6.Name = "Corner"
  148. Corner_6.Parent = Corner_5
  149. Corner_6.BackgroundColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  150. Corner_6.BorderSizePixel = 0
  151. Corner_6.Size = UDim2.new(1, 1, 1, 1)
  152. Corner_6.ZIndex = 2
  153.  
  154. Corner_7.Name = "Corner"
  155. Corner_7.Parent = CodeBox
  156. Corner_7.BackgroundColor3 = Color3.new(1, 1, 1)
  157. Corner_7.BorderSizePixel = 0
  158. Corner_7.Position = UDim2.new(0, 3, 1, -7)
  159. Corner_7.Size = UDim2.new(0, 5, 0, 5)
  160. Corner_7.ZIndex = 3
  161.  
  162. Corner_8.Name = "Corner"
  163. Corner_8.Parent = Corner_7
  164. Corner_8.BackgroundColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  165. Corner_8.BorderSizePixel = 0
  166. Corner_8.Position = UDim2.new(0, -1, 0, 0)
  167. Corner_8.Size = UDim2.new(1, 1, 1, 1)
  168. Corner_8.ZIndex = 2
  169.  
  170. ResizeL_2.Name = "ResizeL"
  171. ResizeL_2.Parent = CodeBox
  172. ResizeL_2.BackgroundColor3 = Color3.new(0.878431, 0.878431, 0.878431)
  173. ResizeL_2.BackgroundTransparency = 1
  174. ResizeL_2.Position = UDim2.new(0, -3, 1, -12)
  175. ResizeL_2.Size = UDim2.new(0, 15, 0, 15)
  176. ResizeL_2.ZIndex = 2
  177. ResizeL_2.AutoButtonColor = false
  178. ResizeL_2.Text = ""
  179. ResizeL_2.TextColor3 = Color3.new(0, 0, 0)
  180.  
  181. MainFrame.Name = "MainFrame"
  182. MainFrame.Parent = ExecuteGUI
  183. MainFrame.Active = true
  184. MainFrame.BackgroundColor3 = Color3.new(1, 1, 1)
  185. MainFrame.BackgroundTransparency = 0.30000001192093
  186. MainFrame.BorderColor3 = Color3.new(0.764706, 0.764706, 0.764706)
  187. MainFrame.Draggable = true
  188. MainFrame.Position = UDim2.new(0, 0, 0, 255)
  189. MainFrame.Size = UDim2.new(0, 90, 0, 75)
  190. MainFrame.ZIndex = 3
  191.  
  192. Close.Name = "Close"
  193. Close.Parent = MainFrame
  194. Close.Active = false
  195. Close.BackgroundColor3 = Color3.new(0.168627, 0.0588235, 1)
  196. Close.BorderColor3 = Color3.new(0.133333, 0.0431373, 0.796079)
  197. Close.BorderSizePixel = 2
  198. Close.Position = UDim2.new(0, 5, 0, 5)
  199. Close.Size = UDim2.new(0, 80, 0, 25)
  200. Close.Visible = false
  201. Close.ZIndex = 4
  202. Close.Font = Enum.Font.SourceSansBold
  203. Close.Text = "Close"
  204. Close.TextColor3 = Color3.new(1, 1, 1)
  205. Close.TextScaled = true
  206. Close.TextSize = 24
  207. Close.TextStrokeTransparency = 0
  208. Close.TextWrapped = true
  209.  
  210. Open.Name = "Open"
  211. Open.Parent = MainFrame
  212. Open.BackgroundColor3 = Color3.new(0.0627451, 1, 0.847059)
  213. Open.BorderColor3 = Color3.new(0.0431373, 0.686275, 0.580392)
  214. Open.BorderSizePixel = 2
  215. Open.Position = UDim2.new(0, 5, 0, 5)
  216. Open.Size = UDim2.new(0, 80, 0, 25)
  217. Open.ZIndex = 4
  218. Open.Font = Enum.Font.SourceSansBold
  219. Open.Text = "Open"
  220. Open.TextColor3 = Color3.new(1, 1, 1)
  221. Open.TextScaled = true
  222. Open.TextSize = 24
  223. Open.TextStrokeTransparency = 0
  224. Open.TextWrapped = true
  225.  
  226. Execute.Name = "Execute"
  227. Execute.Parent = MainFrame
  228. Execute.BackgroundColor3 = Color3.new(1, 0, 0)
  229. Execute.BorderColor3 = Color3.new(0.784314, 0, 0)
  230. Execute.BorderSizePixel = 2
  231. Execute.Position = UDim2.new(0, 5, 0, 35)
  232. Execute.Size = UDim2.new(0, 80, 0, 35)
  233. Execute.ZIndex = 4
  234. Execute.Font = Enum.Font.SourceSansBold
  235. Execute.Text = "Execute"
  236. Execute.TextColor3 = Color3.new(1, 1, 1)
  237. Execute.TextScaled = true
  238. Execute.TextSize = 14
  239. Execute.TextStrokeTransparency = 0
  240. Execute.TextWrapped = true
  241.  
  242. TextLabel.Parent = ExecuteGUI
  243. TextLabel.BackgroundColor3 = Color3.new(0, 0, 0)
  244. TextLabel.Position = UDim2.new(0.0908173546, 0, 0.337301582, 0)
  245. TextLabel.Size = UDim2.new(0, 115, 0, 22)
  246. TextLabel.Font = Enum.Font.SourceSans
  247. TextLabel.Text = "Click Open Output"
  248. TextLabel.TextColor3 = Color3.new(1, 1, 1)
  249. TextLabel.TextSize = 14
  250. TextLabel.TextStrokeColor3 = Color3.new(1, 1, 1)
  251.  
  252. TextLabel_2.Parent = TextLabel
  253. TextLabel_2.BackgroundColor3 = Color3.new(0, 0, 0)
  254. TextLabel_2.Position = UDim2.new(0.00386083126, 0, 1.00276577, 0)
  255. TextLabel_2.Size = UDim2.new(0, 184, 0, 22)
  256. TextLabel_2.Font = Enum.Font.SourceSans
  257. TextLabel_2.Text = "Made By TheDarkGamer/gray_alli28"
  258. TextLabel_2.TextColor3 = Color3.new(1, 1, 1)
  259. TextLabel_2.TextSize = 14
  260. TextLabel_2.TextStrokeColor3 = Color3.new(1, 1, 1)
  261. -- Scripts:
  262. function SCRIPT_DLKV82_FAKESCRIPT() -- CodeBox.Standard
  263. getfenv().script = Instance.new('LocalScript', CodeBox)
  264.  
  265. main = script.Parent
  266. detector = main.Parent.Detector
  267. drag = main.Drag
  268. resize = {main.ResizeR, main.ResizeL, drag.ResizeR, drag.ResizeL}
  269.  
  270. dragging = false
  271. resizing = false
  272.  
  273. xmin = 100
  274. ymin = 100
  275.  
  276. mpx = 0
  277. mpy = 0
  278.  
  279. --drag bar control
  280. drag.MouseButton1Down:connect(function()
  281. dragging = true
  282. deltax = mpx
  283. deltay = mpy
  284. while dragging do
  285. main.Position = UDim2.new(0, main.Position.X.Offset-deltax+mpx, 0, main.Position.Y.Offset-deltay+mpy)
  286. deltax = mpx
  287. deltay = mpy
  288. wait()
  289. end
  290. end)
  291.  
  292. --resize controls
  293. resize[1].MouseButton1Down:connect(function() --bottom right
  294. resizing = true
  295. originx = main.Size.X.Offset
  296. originy = main.Size.Y.Offset
  297. deltax = main.AbsolutePosition.X+main.Size.X.Offset
  298. deltay = main.AbsolutePosition.Y+main.Size.Y.Offset
  299. while resizing do
  300. main.Size = UDim2.new(0, originx+mpx-deltax, 0, originy+mpy-deltay)
  301. if main.Size.X.Offset < xmin then
  302. main.Size = UDim2.new(0, xmin, 0, main.Size.Y.Offset)
  303. end
  304. if main.Size.Y.Offset < ymin then
  305. main.Size = UDim2.new(0, main.Size.X.Offset, 0, ymin)
  306. end
  307. wait()
  308. end
  309. end)
  310. resize[2].MouseButton1Down:connect(function() --bottom left
  311. resizing = true
  312. origin = main.Position
  313. originx = main.Size.X.Offset
  314. originy = main.Size.Y.Offset
  315. deltax = main.AbsolutePosition.X
  316. deltay = main.AbsolutePosition.Y+main.Size.Y.Offset
  317. while resizing do
  318. main.Size = UDim2.new(0, originx-(mpx-deltax), 0, originy+mpy-deltay)
  319. if main.Size.X.Offset < xmin then
  320. main.Size = UDim2.new(0, xmin, 0, main.Size.Y.Offset)
  321. end
  322. if main.Size.Y.Offset < ymin then
  323. main.Size = UDim2.new(0, main.Size.X.Offset, 0, ymin)
  324. end
  325. main.Position = origin-UDim2.new(0, main.Size.X.Offset-originx, 0, 0)
  326. wait()
  327. end
  328. end)
  329. resize[3].MouseButton1Down:connect(function() --top right
  330. resizing = true
  331. origin = main.Position
  332. originx = main.Size.X.Offset
  333. originy = main.Size.Y.Offset
  334. deltax = main.AbsolutePosition.X+main.Size.X.Offset
  335. deltay = drag.AbsolutePosition.Y
  336. while resizing do
  337. main.Size = UDim2.new(0, originx+mpx-deltax, 0, originy-(mpy-deltay))
  338. if main.Size.X.Offset < xmin then
  339. main.Size = UDim2.new(0, xmin, 0, main.Size.Y.Offset)
  340. end
  341. if main.Size.Y.Offset < ymin then
  342. main.Size = UDim2.new(0, main.Size.X.Offset, 0, ymin)
  343. end
  344. main.Position = origin-UDim2.new(0, 0, 0, main.Size.Y.Offset-originy)
  345. wait()
  346. end
  347. end)
  348. resize[4].MouseButton1Down:connect(function() --top left
  349. resizing = true
  350. origin = main.Position
  351. originx = main.Size.X.Offset
  352. originy = main.Size.Y.Offset
  353. deltax = main.AbsolutePosition.X
  354. deltay = drag.AbsolutePosition.Y
  355. while resizing do
  356. main.Size = UDim2.new(0, originx-(mpx-deltax), 0, originy-(mpy-deltay))
  357. if main.Size.X.Offset < xmin then
  358. main.Size = UDim2.new(0, xmin, 0, main.Size.Y.Offset)
  359. end
  360. if main.Size.Y.Offset < ymin then
  361. main.Size = UDim2.new(0, main.Size.X.Offset, 0, ymin)
  362. end
  363. main.Position = origin-UDim2.new(0, main.Size.X.Offset-originx, 0, main.Size.Y.Offset-originy)
  364. wait()
  365. end
  366. end)
  367.  
  368. --keep track of mouse position
  369. detector.MouseMoved:connect(function(x, y)
  370. mpx = x
  371. mpy = y
  372. end)
  373.  
  374. --cancel things
  375. drag.MouseButton1Up:connect(function()
  376. dragging = false
  377. resizing = false
  378. end)
  379.  
  380. for i, v in pairs(resize) do
  381. v.MouseButton1Up:connect(function()
  382. dragging = false
  383. resizing = false
  384. end)
  385. end
  386.  
  387. detector.MouseButton1Up:connect(function()
  388. dragging = false
  389. resizing = false
  390. end)
  391. detector.MouseLeave:connect(function()
  392. dragging = false
  393. resizing = false
  394. end)
  395.  
  396. end
  397. coroutine.resume(coroutine.create(SCRIPT_DLKV82_FAKESCRIPT))
  398. function SCRIPT_RUJQ83_FAKESCRIPT() -- ExecuteGUI.Execute Script
  399. getfenv().script = Instance.new('Script', ExecuteGUI)
  400.  
  401. local gui = script.Parent
  402. local mainframe = gui.MainFrame
  403. local OpenButton = mainframe.Open
  404. local CloseButton = mainframe.Close
  405. local ExecuteButton = mainframe.Execute
  406. local CodeBox = gui.CodeBox
  407.  
  408. OpenButton.MouseButton1Click:connect(function()
  409. OpenButton.Active = false
  410. OpenButton.Visible = false
  411. CloseButton.Active = true
  412. CloseButton.Visible = true
  413. CodeBox.Visible = true
  414. CodeBox.Active = true
  415. Scripts.Visible = true
  416. end)
  417. CloseButton.MouseButton1Click:connect(function()
  418. OpenButton.Active = true
  419. OpenButton.Visible = true
  420. CloseButton.Active = false
  421. CloseButton.Visible = false
  422. CodeBox.Visible = false
  423. CodeBox.Active = false
  424. Scripts.Visible =false
  425. end)
  426. ExecuteButton.MouseButton1Click:connect(function()
  427. loadstring(CodeBox.Text)()
  428. end)
  429.  
  430. end
  431. coroutine.resume(coroutine.create(SCRIPT_RUJQ83_FAKESCRIPT))
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement