Advertisement
Migas3456

Random Script Executor(i was bored)

Oct 31st, 2017
289
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 Frame = Instance.new("Frame")
  5. local Info = Instance.new("Frame")
  6. local Close = Instance.new("TextButton")
  7. local Minimizew = Instance.new("TextButton")
  8. local Label = Instance.new("TextLabel")
  9. local ScriptFrame = Instance.new("Frame")
  10. local ScriptPaste = Instance.new("ScrollingFrame")
  11. local TextBox69 = Instance.new("TextBox")
  12. local Execute = Instance.new("TextButton")
  13. local Clear = Instance.new("TextButton")
  14. local ColorChange = Instance.new("TextButton")
  15.  
  16. -- Properties
  17.  
  18. if game.PlaceId == "843495510,843468296" then
  19. ScreenGui.Parent = game.Players.LocalPlayer.PlayerGui
  20. ScreenGui.ResetOnSpawn = false
  21. else
  22. ScreenGui.Parent = game.CoreGui
  23. end
  24.  
  25. Frame.Parent = ScreenGui
  26. Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  27. Frame.Position = UDim2.new(0, 331, 0, 210)
  28. Frame.Size = UDim2.new(0, 510, 0, 377)
  29. Frame.Active = true
  30. Frame.Draggable = true
  31.  
  32. Info.Name = "Info"
  33. Info.Parent = Frame
  34. Info.BackgroundColor3 = Color3.new(1, 1, 1)
  35. Info.BorderSizePixel = 0
  36. Info.Size = UDim2.new(0, 510, 0, 35)
  37. Info.BackgroundTransparency = 1
  38.  
  39. Close.Name = "Close"
  40. Close.Parent = Info
  41. Close.BackgroundColor3 = Color3.new(1, 0, 0)
  42. Close.BorderSizePixel = 0
  43. Close.Position = UDim2.new(0, 475, 0, 0)
  44. Close.Size = UDim2.new(0, 35, 0, 35)
  45. Close.Font = Enum.Font.SourceSans
  46. Close.FontSize = Enum.FontSize.Size14
  47. Close.Text = " "
  48. Close.TextColor3 = Color3.new(1, 0, 0)
  49. Close.TextSize = 14
  50. Close.TextWrapped = true
  51.  
  52. Close.MouseButton1Down:connect(function()
  53. ScreenGui:Destroy()
  54. ScreenGui2:Destroy()
  55. end)
  56.  
  57. Minimizew.Name = "Minimizew"
  58. Minimizew.Parent = Info
  59. Minimizew.BackgroundColor3 = Color3.new(1, 0.333333, 0)
  60. Minimizew.BorderSizePixel = 0
  61. Minimizew.Position = UDim2.new(0, 438, 0, 0)
  62. Minimizew.Size = UDim2.new(0, 35, 0, 35)
  63. Minimizew.Font = Enum.Font.SourceSans
  64. Minimizew.FontSize = Enum.FontSize.Size14
  65. Minimizew.Text = ""
  66. Minimizew.TextColor3 = Color3.new(1, 0, 0)
  67. Minimizew.TextSize = 14
  68. Minimizew.TextWrapped = true
  69.  
  70. Minimizew.MouseButton1Down:connect(function()
  71. if ScriptFrame.Visible == false then
  72. ScriptFrame.Visible = true
  73. Frame.Size = UDim2.new(0, 510, 0, 377)
  74. else
  75. ScriptFrame.Visible = false
  76. Frame.Size = UDim2.new(0, 510, 0, 35)
  77. end
  78. end)
  79.  
  80. Label.Name = "Label"
  81. Label.Parent = Info
  82. Label.BackgroundColor3 = Color3.new(1, 1, 1)
  83. Label.Size = UDim2.new(0, 436, 0, 35)
  84. Label.Font = Enum.Font.SourceSans
  85. Label.FontSize = Enum.FontSize.Size14
  86. Label.Text = "Random Script Executor"
  87. Label.TextScaled = true
  88. Label.TextSize = 14
  89. Label.TextWrapped = true
  90.  
  91. ScriptFrame.Name = "ScriptFrame"
  92. ScriptFrame.Parent = Frame
  93. ScriptFrame.BackgroundColor3 = Color3.new(1, 1, 1)
  94. ScriptFrame.Position = UDim2.new(0, 0, 0, 36)
  95. ScriptFrame.Size = UDim2.new(0, 510, 0, 341)
  96. ScriptFrame.BackgroundTransparency = 1
  97.  
  98. ScriptPaste.Name = "ScriptPaste"
  99. ScriptPaste.Parent = ScriptFrame
  100. ScriptPaste.BackgroundColor3 = Color3.new(1, 1, 1)
  101. ScriptPaste.Size = UDim2.new(0, 510, 0, 287)
  102.  
  103. TextBox69.Parent = ScriptPaste
  104. TextBox69.BackgroundColor3 = Color3.new(0.870588, 0.870588, 0.870588)
  105. TextBox69.Size = UDim2.new(0, 510, 0, 287)
  106. TextBox69.Font = Enum.Font.SourceSans
  107. TextBox69.FontSize = Enum.FontSize.Size14
  108. TextBox69.Text = ""
  109. TextBox69.TextSize = 14
  110. TextBox69.TextWrapped = true
  111. TextBox69.TextXAlignment = Enum.TextXAlignment.Left
  112. TextBox69.TextYAlignment = Enum.TextYAlignment.Top
  113.  
  114. Execute.Name = "Execute"
  115. Execute.Parent = ScriptFrame
  116. Execute.BackgroundColor3 = Color3.new(1, 1, 1)
  117. Execute.Position = UDim2.new(0, 18, 0, 298)
  118. Execute.Size = UDim2.new(0, 124, 0, 34)
  119. Execute.Font = Enum.Font.SourceSans
  120. Execute.FontSize = Enum.FontSize.Size14
  121. Execute.Text = "Execute"
  122. Execute.TextSize = 14
  123.  
  124. Execute.MouseButton1Down:connect(function()
  125. loadstring(TextBox69.Text)()
  126. end)
  127.  
  128. Clear.Name = "Clear"
  129. Clear.Parent = ScriptFrame
  130. Clear.BackgroundColor3 = Color3.new(1, 1, 1)
  131. Clear.Position = UDim2.new(0, 193, 0, 298)
  132. Clear.Size = UDim2.new(0, 124, 0, 34)
  133. Clear.Font = Enum.Font.SourceSans
  134. Clear.FontSize = Enum.FontSize.Size14
  135. Clear.Text = "Clear"
  136. Clear.TextSize = 14
  137.  
  138. Clear.MouseButton1Down:connect(function()
  139. TextBox69.Text = ""
  140. end)
  141.  
  142. ColorChange.Name = "Color Change"
  143. ColorChange.Parent = ScriptFrame
  144. ColorChange.BackgroundColor3 = Color3.new(1, 1, 1)
  145. ColorChange.Position = UDim2.new(0, 371, 0, 298)
  146. ColorChange.Size = UDim2.new(0, 124, 0, 34)
  147. ColorChange.Font = Enum.Font.SourceSans
  148. ColorChange.FontSize = Enum.FontSize.Size14
  149. ColorChange.Text = "Change Color Theme"
  150. ColorChange.TextSize = 14
  151.  
  152. ColorChange.MouseButton1Down:connect(function()
  153. -- Objects
  154.  
  155. local ScreenGui2 = Instance.new("ScreenGui")
  156. local TextBox = Instance.new("TextBox")
  157. local TextButton = Instance.new("TextButton")
  158.  
  159. -- Properties
  160.  
  161. ScreenGui2.Parent = game.Players.LocalPlayer.PlayerGui
  162.  
  163. TextBox.Parent = ScreenGui
  164. TextBox.BackgroundColor3 = Color3.new(1, 1, 1)
  165. TextBox.Position = UDim2.new(0, 0, 0, 606)
  166. TextBox.Size = UDim2.new(0, 149, 0, 27)
  167. TextBox.Font = Enum.Font.SourceSans
  168. TextBox.FontSize = Enum.FontSize.Size14
  169. TextBox.TextSize = 14
  170.  
  171. TextButton.Parent = ScreenGui
  172. TextButton.BackgroundColor3 = Color3.new(1, 1, 1)
  173. TextButton.Position = UDim2.new(0, 0, 0, 646)
  174. TextButton.Size = UDim2.new(0, 149, 0, 27)
  175. TextButton.Font = Enum.Font.SourceSans
  176. TextButton.FontSize = Enum.FontSize.Size14
  177. TextButton.Text = "Change Color"
  178. TextButton.TextSize = 14
  179.  
  180. TextButton.MouseButton1Down:connect(function()
  181. Frame.BackgroundColor3 = Color3.new(TextBox.Text)
  182. Label.BackgroundColor3 = Color3.new(TextBox.Text)
  183. ScriptPaste.BackgroundColor3 = Color3.new(TextBox.Text)
  184. end)
  185. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement