Advertisement
Guest User

Untitled

a guest
Nov 20th, 2017
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.77 KB | None | 0 0
  1. local Gui = game:GetObjects('rbxassetid://1188002741')[1]
  2. Gui.Parent = game.CoreGui
  3.  
  4. local Banned = {}
  5. local Slock = false
  6. local destroy = workspace.GameService.DestroyIngredient
  7. local Players = game:GetService('Players')
  8. local LPlayer = Players.LocalPlayer
  9.  
  10. local Commands = {'ban Player',
  11. 'kick Player',
  12. 'destroyworkspace',
  13. 'cmds',
  14. 'cripple Player',
  15. 'disable Player',
  16. 'takeover',
  17. 'fuckpizza',
  18. 'kill Player',
  19. 'slock',
  20. 'unslock',
  21. 'viewbans',
  22. 'ruin',
  23. 'shutdown',
  24. 'btools',
  25. 'end',
  26. 'More To Be Added Soon!',
  27. }
  28.  
  29. function Kick(Player)
  30. destroy:FireServer(Player, false)
  31. print('Kicked ' .. Player.Name)
  32. end
  33.  
  34. function Ban(Player)
  35. table.insert(Banned, Player.Name)
  36. print('Banned ' .. Player.Name)
  37. Kick(Player)
  38. end
  39. Players.PlayerAdded:connect(function(plr)
  40. for i,v in pairs(Banned) do
  41. if v == plr.Name then
  42. Kick(plr)
  43. print('Banned Player ' .. plr.Name .. ' tried to join')
  44. end
  45. end
  46. if Slock then
  47. Kick(plr)
  48. print('Player ' .. plr.Name .. ' tried to join while slock was on')
  49. end
  50. end)
  51.  
  52. function Get(Arg)
  53. local Found = {}
  54. if Arg:lower() == 'all' then
  55. for i,v in pairs(Players:GetPlayers()) do
  56. table.insert(Found, v.Name)
  57. end
  58. elseif Arg:lower() == 'others' then
  59. for i,v in pairs(Players:GetPlayers()) do
  60. if v.Name ~= LPlayer.Name then
  61. table.insert(Found, v.Name)
  62. end
  63. end
  64. elseif Arg:lower() == 'random' then
  65. table.insert(Found,Players:GetPlayers()[math.random(#Players:GetPlayers())].Name)
  66. else
  67. for i,v in pairs(Players:GetPlayers()) do
  68. if v.Name:lower():sub(1, #Arg) == Arg:lower() then
  69. table.insert(Found, v.Name)
  70. end
  71. end
  72. end
  73. return Found
  74. end
  75.  
  76. local msg = Gui.Drag.CommandBar
  77.  
  78. Gui.Drag.Run.MouseButton1Down:connect(function()
  79. if msg.Text:lower():sub(1,5) == 'kick ' then
  80. for i,v in pairs(Get(msg.Text:lower():sub(6))) do
  81. Kick(Players:FindFirstChild(v))
  82. end
  83. elseif msg.Text:lower():sub(1,4) == 'ban ' then
  84. for i,v in pairs(Get(msg.Text:lower():sub(5))) do
  85. Ban(Players:FindFirstChild(v))
  86. end
  87. elseif msg.Text:lower() == 'destroyworkspace' then
  88. for i,v in pairs(workspace:GetDescendants()) do
  89. pcall(function()
  90. if v.Name ~= 'GameService' or v.Parent.Name ~= 'GameService' then
  91. destroy:FireServer(v,false)
  92. end
  93. end)
  94. end
  95. elseif msg.Text:lower() == 'cmds' then
  96. Gui.Drag.CommandBar.Text = 'Press f9 to view commands'
  97. print(table.concat(Commands, ' | '))
  98. elseif msg.Text:lower():sub(1,8) == 'cripple ' then
  99. for i,v in pairs(Get(msg.Text:lower():sub(9))) do
  100. destroy:FireServer(Players:FindFirstChild(v).Character.HumanoidRootPart,false)
  101. end
  102. elseif msg.Text:lower():sub(1,8) == 'disable ' then
  103. for i,v in pairs(Get(msg.Text:lower():sub(9))) do
  104. destroy:FireServer(Players:FindFirstChild(v).Character.Humanoid,false)
  105. end
  106. elseif msg.Text:lower() == 'takeover' then
  107. for i, v in pairs(Players:GetPlayers()) do
  108. if v.TeamColor == game.Teams.Manager.TeamColor and v.Name ~= LPlayer.Name then
  109. Kick(v)
  110. LPlayer.Character:MoveTo(workspace.ManagerChair.Seat.Position)
  111. else
  112. LPlayer.Character:MoveTo(workspace.ManagerChair.Seat.Position)
  113. end
  114. end
  115. elseif msg.Text:lower() == 'fuckpizza' then
  116. for i,v in pairs(workspace:GetDescendants()) do
  117. if v.Name == 'Dough' or v.Parent.Name == 'Ingredients' then
  118. destroy:FireServer(v,false)
  119. end
  120. end
  121. elseif msg.Text:lower():sub(1,5) == 'kill ' then
  122. for i,v in pairs(Get(msg.text:lower():sub(6))) do
  123. destroy:FireServer(Players:FindFirstChild(v).Character.Head,true)
  124. end
  125. Gui.Drag.CommandBar.Text = 'This can take a while'
  126. elseif msg.Text:lower() == 'slock' then
  127. if not Slock then
  128. Slock = true
  129. else
  130. Gui.Drag.CommandBar.Text = 'Server Is Already Locked'
  131. end
  132. elseif msg.Text:lower() == 'unslock' then
  133. if Slock then
  134. Slock = false
  135. else
  136. Gui.Drag.CommandBar.Text = 'Server Is Not Locked'
  137. end
  138. elseif msg.Text:lower() == 'shutdown' then
  139. for i,v in pairs(Players:GetPlayers()) do
  140. if v.Name ~= LPlayer.Name then
  141. Kick(v)
  142. end
  143. end
  144. Kick(LPlayer)
  145. elseif msg.Text:lower() == 'ruin' then
  146. for i,v in pairs(game:GetDescendants()) do
  147. if v.Parent.Name ~= 'Players' then
  148. pcall(function()
  149. destroy:FireServer(v,false)
  150. end)
  151. end
  152. end
  153. elseif msg.Text:lower() == 'viewbans' then
  154. print(table.concat(Banned, ' | '))
  155. Gui.Drag.CommandBar.Text = 'Press f9 to view bans'
  156. elseif msg.Text:lower() == 'btools' then
  157. for i,v in pairs(workspace:GetDescendants()) do
  158. pcall(function()
  159. v.Locked = false
  160. end)
  161. end
  162. local function OnClick()
  163. pcall(function()
  164. local target = LPlayer:GetMouse().Target
  165. destroy:FireServer(target,false)
  166. print('Destroyed ' .. target.Name)
  167. end)
  168. end
  169. local b = Instance.new('Tool', LPlayer.Backpack)
  170. b.RequiresHandle = false
  171. b.Activated:connect(OnClick)
  172. elseif msg.Text:lower() == 'end' then
  173. Gui:Destroy()
  174. if Slock then
  175. Slock = false
  176. end
  177. for i,v in pairs(Banned) do
  178. table.remove(Banned, i)
  179. end
  180. end
  181. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement