Advertisement
DragonSploitsYT

Roblox Khols Admin House Kick And Ban

Jan 30th, 2020
290
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.68 KB | None | 0 0
  1. local MainUI = game:GetObjects('rbxassetid://1064531675')[1]
  2. MainUI.Parent = game.CoreGui
  3.  
  4. local banned = {}
  5.  
  6. local version = "V1.1"
  7.  
  8. slock = false
  9. ---Don't change the slock to true as it will mess shit up
  10.  
  11. local thanks = Instance.new("Hint", game.Workspace)
  12. thanks.Text = "Thanks For Using My GUI " .. game.Players.LocalPlayer.Name .. " | Current GUI Version Is, " .. version
  13. wait(4)
  14. thanks:Destroy()
  15.  
  16. game.Players.PlayerAdded:connect(function(plr)
  17. for i,v in pairs(banned) do
  18. if v == plr.Name then
  19. print(plr.Name .. " Just tried to join while on the banlist")
  20. MainUI.All.Output.Text = plr.Name .. " Just tried to join while on the banlist"
  21. game.Workspace.Delete.delete:FireServer(plr)
  22. end
  23. end
  24. end)
  25.  
  26. game.Players.LocalPlayer.Backpack.DescendantAdded:connect(function()
  27. for i,v in pairs(game.Players.LocalPlayer.Backpack:GetDescendants()) do
  28. if v:IsA("Tool") then
  29. v.CanBeDropped = true
  30. MainUI.All.Output.Text = "Btools Can Now Be Dropped"
  31. end end
  32. end)
  33.  
  34. MainUI.All.BanOthers.MouseButton1Down:connect(function()
  35. for i,v in pairs(game.Players:GetChildren()) do
  36. if v.Name ~= game.Players.LocalPlayer.Name then
  37. table.insert(banned, v.Name)
  38. print(table.concat(banned, " "))
  39. MainUI.All.Output.Text = table.concat(banned, " ")
  40. game.Workspace.Delete.delete:FireServer(v)
  41. end
  42. end
  43. end)
  44.  
  45. MainUI.All.BlockMusic.MouseButton1Down:connect(function()
  46. game.Workspace.Delete.delete:FireServer(game.Workspace.Sound)
  47. game.Workspace.DescendantAdded:connect(function(snd)
  48. if snd.Name == "Sound" then
  49. game.Workspace.Delete.delete:FireServer(snd)
  50. end
  51. end)
  52. end)
  53.  
  54. MainUI.All.ObliterateServer.MouseButton1Down:connect(function()
  55. for i,v in pairs(game.Workspace:GetDescendants()) do
  56. if v:IsA("Part") then
  57. game.Workspace.Delete.delete:FireServer(v)
  58. MainUI.All.Output.Text = "Server Just Got Destroyed... Rip"
  59. end
  60. end
  61. end)
  62.  
  63. MainUI.All.DelLavaJumps.MouseButton1Down:connect(function()
  64. game.Workspace.Delete.delete:FireServer(game.Workspace.Terrain.Tabby.Admin_House.Jumps)
  65. print("Deleted Lava Jumps")
  66. MainUI.All.Output.Text = "Deleted Lava Jumps"
  67. end)
  68.  
  69. MainUI.All.DelWalls.MouseButton1Down:connect(function()
  70. game.Workspace.Delete.delete:FireServer(game.Workspace.Terrain.Tabby.Admin_House.Barriers)
  71. print("Deleted Barriers")
  72. MainUI.All.Output.Text = "Deleted Barriers"
  73. end)
  74.  
  75. MainUI.All.DelPads.MouseButton1Down:connect(function()
  76. game.Workspace.Delete.delete:FireServer(game.Workspace.Terrain.Tabby.Admins)
  77. print("Deleted Admin Pads")
  78. MainUI.All.Output.Text = "Deleted Admin Pads"
  79. end)
  80.  
  81. MainUI.All.DelHouse.MouseButton1Down:connect(function()
  82. game.Workspace.Delete.delete:FireServer(game.Workspace.Terrain.Tabby.Admin_House.House)
  83. print("Deleted House")
  84. MainUI.All.Output.Text = "Deleted House"
  85. end)
  86.  
  87. MainUI.All.KickOthers.MouseButton1Down:connect(function()
  88. for i,v in pairs(game.Players:GetChildren()) do
  89. if v.Name ~= game.Players.LocalPlayer.Name then
  90. game.Workspace.Delete.delete:FireServer(v)
  91. print(v.Name .. " has been kicked")
  92. MainUI.All.Output.Text = v.Name .. " has been kicked"
  93. end
  94. end
  95. end)
  96.  
  97. MainUI.All.Shutdown.MouseButton1Down:connect(function()
  98. for i,v in pairs(game.Players:GetChildren()) do
  99. game.Workspace.Delete.delete:FireServer(v)
  100. end
  101. end)
  102.  
  103. MainUI.All.LockServer.MouseButton1Down:connect(function()
  104. if slock == false then
  105. slock = true
  106. MainUI.All.LockServer.Text = "Unlock Server"
  107. MainUI.All.Output.Text = "Server Locked"
  108. elseif slock == true then
  109. slock = false
  110. MainUI.All.LockServer.Text = "Lock Server"
  111. MainUI.All.Output.Text = "Server Unlocked"
  112. end
  113. end)
  114.  
  115. game.Players.PlayerAdded:connect(function(plr)
  116. if slock == true then
  117. game.Workspace.Delete.delete:FireServer(plr)
  118. print(plr.Name .. " Just tried to join on the serverlock")
  119. MainUI.All.Output.Text = plr.Name .. " Just tried to join on the serverlock"
  120. elseif slock == false then
  121. MainUI.All.Output.Text = plr.Name .. " Just joined, serverlock has been confirmed off"
  122. print(plr.Name .. " Just joined, serverlock has been confirmed off")
  123. end
  124. end)
  125.  
  126. MainUI.CloseFrame.CloseButton.MouseButton1Down:connect(function()
  127. if MainUI.All.Visible == true then
  128. MainUI.All.Visible = false
  129. MainUI.All.Active = false
  130. MainUI.CloseFrame.CloseButton.Text = "Open"
  131. elseif MainUI.All.Visible == false then
  132. MainUI.All.Visible = true
  133. MainUI.All.Active = true
  134. MainUI.CloseFrame.CloseButton.Text = "Close"
  135. end
  136. end)
  137.  
  138. MainUI.DestroyGUI.MouseButton1Down:connect(function()
  139. MainUI:Destroy()
  140. end)
  141.  
  142. MainUI.All.TpToPads.MouseButton1Down:connect(function()
  143. game.Workspace:FindFirstChild(game.Players.LocalPlayer.Name).HumanoidRootPart.CFrame = CFrame.new(Vector3.new(-14.4301682, 9.71697426, 85.5537949))
  144. end)
  145.  
  146. MainUI.All.PrintBans.MouseButton1Down:connect(function()
  147. print(table.concat(banned, ' | '))
  148. MainUI.All.Output.Text = table.concat(banned, ' | ')
  149. end)
  150.  
  151. MainUI.All.KickConfirm.MouseButton1Down:connect(function()
  152. game.Workspace.Delete.delete:FireServer(game.Players:FindFirstChild(MainUI.All.KickName.Text))
  153. print("Kicked " .. game.Players:FindFirstChild(MainUI.All.KickName.Text).Name)
  154. MainUI.All.Output.Text = "Kicked " .. game.Players:FindFirstChild(MainUI.All.KickName.Text).Name
  155. end)
  156.  
  157. MainUI.All.BanConfirm.MouseButton1Down:connect(function()
  158. table.insert(banned, game.Players:FindFirstChild(MainUI.All.BanName.Text).Name)
  159. game.Workspace.Delete.delete:FireServer(game.Players:FindFirstChild(MainUI.All.BanName.Text))
  160. print("Banned " .. game.Players:FindFirstChild(MainUI.All.BanName.Text).Name)
  161. MainUI.All.Output.Text = "Banned " .. game.Players:FindFirstChild(MainUI.All.BanName.Text).Name
  162. end)
  163.  
  164. MainUI.All.UnbanAll.MouseButton1Down:connect(function()
  165. for i=1, #banned do
  166. table.remove(banned, 1)
  167. MainUI.All.Output.Text = "Unbanned All"
  168. end
  169. end)
  170.  
  171. MainUI.All.UnlockWorkspace.MouseButton1Down:connect(function()
  172. for i,v in pairs(game.Workspace:GetDescendants()) do
  173. if v:IsA("Part") then
  174. v.Locked = false
  175. print("Unlocked" .. v.Name)
  176. MainUI.All.Output.Text = "Unlocked" .. v.Name
  177. end end
  178. end)
  179.  
  180. MainUI.All.UnbanConfirm.MouseButton1Down:connect(function()
  181. table.remove(banned, game.Players:FindFirstChild(MainUI.All.BanName.Text))
  182. end)
  183.  
  184. MainUI.All.KickNoobs.MouseButton1Down:connect(function()
  185. for i,v in pairs(game.Players:GetChildren()) do
  186. if v.AccountAge < 3 then
  187. game.Workspace.Delete.delete:FireServer(v)
  188. MainUI.All.Output.Text = "Kicked " .. v.Name
  189. end
  190. end
  191. end)
  192.  
  193. MainUI.All.Cleanup.MouseButton1Down:connect(function()
  194. for i,v in pairs(game.Workspace:GetChildren()) do
  195. if v:IsA("Part") then game.Workspace.Delete.delete:FireServer(v)
  196. MainUI.All.Output.Text = "Cleaned Up Workspace"
  197. end end end)
  198.  
  199. MainUI.All.ClrOutput.MouseButton1Down:connect(function()
  200. MainUI.All.Output.Text = " "
  201. end)
  202.  
  203. MainUI.All.DelOutput.MouseButton1Down:connect(function()
  204. MainUI.All.Output.Visible = false
  205. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement