Advertisement
tonyissocool

Roblox kohls admin house script

Sep 6th, 2020
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.76 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local ScreenGui = Instance.new("ScreenGui")
  7. local Menu = Instance.new("Frame")
  8. local CloseButton = Instance.new("TextButton")
  9. local Command = Instance.new("TextBox")
  10. local RunCommandButton = Instance.new("TextButton")
  11. local LoopButton = Instance.new("TextButton")
  12. local StopLoopButton = Instance.new("TextButton")
  13. local EnterCommandLabel = Instance.new("TextLabel")
  14. local TitleLabel = Instance.new("TextLabel")
  15. local OpenMenu = Instance.new("Frame")
  16. local OpenButton = Instance.new("TextButton")
  17. local loop = false
  18. local command = ""
  19.  
  20. --Properties:
  21.  
  22. ScreenGui.Parent = game.CoreGui
  23. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  24.  
  25. Menu.Name = "Menu"
  26. Menu.Parent = ScreenGui
  27. Menu.Active = true
  28. Menu.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  29. Menu.BorderColor3 = Color3.fromRGB(0, 0, 0)
  30. Menu.Position = UDim2.new(0.193649009, 0, 0.270348847, 0)
  31. Menu.Size = UDim2.new(0, 498, 0, 291)
  32. Menu.Visible = false
  33. Menu.Draggable = true
  34.  
  35. CloseButton.Name = "CloseButton"
  36. CloseButton.Parent = Menu
  37. CloseButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  38. CloseButton.Position = UDim2.new(0.897088289, 0, 0, 0)
  39. CloseButton.Size = UDim2.new(0, 50, 0, 50)
  40. CloseButton.Font = Enum.Font.SourceSans
  41. CloseButton.Text = "x"
  42. CloseButton.TextColor3 = Color3.fromRGB(170, 0, 0)
  43. CloseButton.TextScaled = true
  44. CloseButton.TextSize = 14.000
  45. CloseButton.TextWrapped = true
  46. CloseButton.MouseButton1Down:connect(function()
  47. Menu.Visible = false
  48. OpenMenu.Visible = true
  49. end)
  50.  
  51. Command.Name = "Command"
  52. Command.Parent = Menu
  53. Command.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  54. Command.BorderColor3 = Color3.fromRGB(0, 0, 0)
  55. Command.Position = UDim2.new(0.407695472, 0, 0.400185704, 0)
  56. Command.Size = UDim2.new(0, 200, 0, 50)
  57. Command.Font = Enum.Font.SourceSans
  58. Command.Text = ""
  59. Command.TextColor3 = Color3.fromRGB(0, 0, 0)
  60. Command.TextSize = 14.000
  61.  
  62. RunCommandButton.Name = "RunCommandButton"
  63. RunCommandButton.Parent = Menu
  64. RunCommandButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  65. RunCommandButton.BorderColor3 = Color3.fromRGB(57, 82, 93)
  66. RunCommandButton.Position = UDim2.new(0.0166548565, 0, 0.694620132, 0)
  67. RunCommandButton.Size = UDim2.new(0, 150, 0, 50)
  68. RunCommandButton.Font = Enum.Font.SourceSans
  69. RunCommandButton.Text = "Run Command"
  70. RunCommandButton.TextColor3 = Color3.fromRGB(170, 255, 0)
  71. RunCommandButton.TextScaled = true
  72. RunCommandButton.TextSize = 14.000
  73. RunCommandButton.TextWrapped = true
  74. RunCommandButton.MouseButton1Down:connect(function()
  75. ExecuteCommand(Command.Text)
  76. end)
  77.  
  78. LoopButton.Name = "LoopButton"
  79. LoopButton.Parent = Menu
  80. LoopButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  81. LoopButton.BorderColor3 = Color3.fromRGB(57, 82, 93)
  82. LoopButton.Position = UDim2.new(0.347507715, 0, 0.695172548, 0)
  83. LoopButton.Size = UDim2.new(0, 150, 0, 50)
  84. LoopButton.Font = Enum.Font.SourceSans
  85. LoopButton.Text = "Loop Command"
  86. LoopButton.TextColor3 = Color3.fromRGB(170, 255, 0)
  87. LoopButton.TextScaled = true
  88. LoopButton.TextSize = 14.000
  89. LoopButton.TextWrapped = true
  90. LoopButton.MouseButton1Down:connect(function()
  91. loop = true
  92. command = Command.Text
  93. end)
  94.  
  95. StopLoopButton.Name = "StopLoopButton"
  96. StopLoopButton.Parent = Menu
  97. StopLoopButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  98. StopLoopButton.BorderColor3 = Color3.fromRGB(57, 82, 93)
  99. StopLoopButton.Position = UDim2.new(0.679305494, 0, 0.693855822, 0)
  100. StopLoopButton.Size = UDim2.new(0, 150, 0, 50)
  101. StopLoopButton.Font = Enum.Font.SourceSans
  102. StopLoopButton.Text = "Stop Loop"
  103. StopLoopButton.TextColor3 = Color3.fromRGB(170, 255, 0)
  104. StopLoopButton.TextScaled = true
  105. StopLoopButton.TextSize = 14.000
  106. StopLoopButton.TextWrapped = true
  107. StopLoopButton.MouseButton1Down:connect(function()
  108. loop = false
  109. end)
  110.  
  111. EnterCommandLabel.Name = "EnterCommandLabel"
  112. EnterCommandLabel.Parent = Menu
  113. EnterCommandLabel.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  114. EnterCommandLabel.BorderColor3 = Color3.fromRGB(0, 0, 0)
  115. EnterCommandLabel.Position = UDim2.new(0.0180722885, 0, 0.401406229, 0)
  116. EnterCommandLabel.Size = UDim2.new(0, 181, 0, 50)
  117. EnterCommandLabel.Font = Enum.Font.SourceSans
  118. EnterCommandLabel.Text = "Enter Command:"
  119. EnterCommandLabel.TextColor3 = Color3.fromRGB(170, 255, 0)
  120. EnterCommandLabel.TextScaled = true
  121. EnterCommandLabel.TextSize = 14.000
  122. EnterCommandLabel.TextWrapped = true
  123.  
  124. TitleLabel.Name = "TitleLabel"
  125. TitleLabel.Parent = Menu
  126. TitleLabel.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  127. TitleLabel.Position = UDim2.new(0.170682728, 0, 0, 0)
  128. TitleLabel.Size = UDim2.new(0, 355, 0, 50)
  129. TitleLabel.Font = Enum.Font.SourceSans
  130. TitleLabel.Text = "Test Kohls Gui"
  131. TitleLabel.TextColor3 = Color3.fromRGB(170, 255, 0)
  132. TitleLabel.TextScaled = true
  133. TitleLabel.TextSize = 14.000
  134. TitleLabel.TextWrapped = true
  135.  
  136. OpenMenu.Name = "OpenMenu"
  137. OpenMenu.Parent = ScreenGui
  138. OpenMenu.Active = true
  139. OpenMenu.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  140. OpenMenu.BorderColor3 = Color3.fromRGB(0, 0, 0)
  141. OpenMenu.Position = UDim2.new(0.898155868, 0, 0.431686044, 0)
  142. OpenMenu.Selectable = true
  143. OpenMenu.Size = UDim2.new(0, 100, 0, 50)
  144. OpenButton.Draggable = true
  145.  
  146. OpenButton.Name = "OpenButton"
  147. OpenButton.Parent = OpenMenu
  148. OpenButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  149. OpenButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
  150. OpenButton.Position = UDim2.new(-0.00555554032, 0, -0.00666666031, 0)
  151. OpenButton.Size = UDim2.new(0, 100, 0, 50)
  152. OpenButton.Font = Enum.Font.SourceSans
  153. OpenButton.Text = "Open"
  154. OpenButton.TextColor3 = Color3.fromRGB(170, 255, 0)
  155. OpenButton.TextScaled = true
  156. OpenButton.TextSize = 14.000
  157. OpenButton.TextWrapped = true
  158. OpenButton.MouseButton1Down:connect(function()
  159. OpenMenu.Visible = false
  160. Menu.Visible = true
  161. end)
  162.  
  163. function ExecuteCommand(Command)
  164. game:GetService("Players"):Chat(Command)
  165. end
  166. while wait(0) do
  167. ExecuteCommand(command)
  168. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement