DatOneTrap

Untitled

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