Advertisement
Guest User

Untitled

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