abusabIe

kahoa

Jun 2nd, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.18 KB | None | 0 0
  1. plr = game.Players.LocalPlayer
  2. prefix = ":"
  3. banned = {}
  4.  
  5. function GetPlayer(String) -- timeless/xfunnieuss
  6. local Found = {}
  7. local strl = String:lower()
  8. if strl == "all" then
  9. for i,v in pairs(game.Players:GetPlayers()) do
  10. table.insert(Found,v)
  11. end
  12. elseif strl == "others" then
  13. for i,v in pairs(game.Players:GetPlayers()) do
  14. if v.Name ~= game.Players.LocalPlayer.Name then
  15. table.insert(Found,v)
  16. end
  17. end
  18. elseif strl == "me" then
  19. for i,v in pairs(game.Players:GetPlayers()) do
  20. if v.Name == game.Players.LocalPlayer.Name then
  21. table.insert(Found,v)
  22. end
  23. end
  24. else
  25. for i,v in pairs(game.Players:GetPlayers()) do
  26. if v.Name:lower():sub(1, #String) == String:lower() then
  27. table.insert(Found,v)
  28. end
  29. end
  30. end
  31. return Found
  32. end
  33.  
  34. plr.Chatted:Connect(function(msg)
  35. if string.sub(msg, 1, 6) == (prefix.."kick ") then
  36. for i,v in pairs(GetPlayer(string.sub(msg, 7))) do
  37. local remote = game.Players.LocalPlayer.Backpack.Delete.delete
  38. remote:FireServer(v)
  39. end
  40. end
  41. end)
  42.  
  43.  
  44. prefix = ":"
  45. slock = false
  46.  
  47. plr = game.Players.LocalPlayer
  48. plr.Chatted:Connect(function(ok)
  49. if string.sub(ok, 1) == (prefix.. "admin") then
  50. now = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  51.  
  52. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  53. =
  54. game.Workspace.Terrain.GameFolder.Admin.Pads['Touch to get admin'].Head.CFrame
  55.  
  56. wait(0.2)
  57.  
  58. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = now
  59. end
  60. end)
  61.  
  62. plr.Chatted:connect(function(wtf)
  63. if string.sub(wtf, 1) == (prefix.. "shutdown") then
  64. for i,v in pairs(game.Players:GetPlayers()) do
  65. if v~= plr then
  66. local remote = game.Players.LocalPlayer.Backpack.Delete.delete
  67. remote:FireServer(v)
  68. end
  69. end
  70. end
  71. end)
  72.  
  73.  
  74. plr.Chatted:connect(function(lol)
  75. if string.sub(lol, 1) == (prefix.. "slock") then
  76. slock = true
  77. print'Server Locked!'
  78. end
  79. end)
  80.  
  81. plr.Chatted:Connect(function(oyes)
  82. if string.sub(oyes, 1) == (prefix.. "unslock") then
  83. slock = false
  84. print'Server Unlocked!'
  85. end
  86. end)
  87.  
  88.  
  89. plr.Chatted:connect(function(wtf)
  90. if string.sub(wtf, 1) == (prefix.. "shutdown") then
  91. wait(1)
  92. plr:Kick'Shutdown game.'
  93. end
  94. end)
  95.  
  96.  
  97. game.Players.PlayerAdded:connect(function(xDDD)
  98. if slock == true then
  99. local remote = game.Players.LocalPlayer.Backpack.Delete.delete
  100. remote:FireServer(xDDD)
  101. end
  102. end)
  103.  
  104. plr.Chatted:Connect(function(xd)
  105. if string.sub(xd, 1) == (prefix.. "rworkspace") then
  106. local remote = game.Players.LocalPlayer.Backpack.Delete.delete
  107.  
  108. remote:FireServer(Workspace.Terrain.GameFolder)
  109. remote:FireServer(Workspace.Terrain.GameFolder)
  110. end
  111. end)
  112.  
  113. plr.Chatted:Connect(function(msg)
  114. if string.sub(msg, 1, 5) == (prefix.."ban ") then
  115. for i,v in pairs(GetPlayer(string.sub(msg, 6))) do
  116. table.insert(banned,v.Name)
  117. local remote = game.Players.LocalPlayer.Backpack.Delete.delete
  118. remote:FireServer(v)
  119. end
  120. end
  121. end)
  122.  
  123. game.Players.PlayerAdded:connect(function(x)
  124. wait(0.25)
  125. for i,v in pairs(banned) do
  126. if x.Name == v then
  127. local remote = game.Players.LocalPlayer.Backpack.Delete.delete
  128. remote:FireServer(x)
  129. end
  130. end
  131. end)
Add Comment
Please, Sign In to add comment