Advertisement
Blueisim

Untitled

Aug 20th, 2016
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.04 KB | None | 0 0
  1. ------Hutspy's antiban script!--------------------------------------------------------------------------
  2. ------------Don't change this!-----------
  3. n = "h"
  4. n = n.."u"
  5. n = n.."t"
  6. n = n.."s"
  7. n = n.."p"
  8. n = n.."y"
  9. h = Instance.new("Hint")
  10. m = Instance.new("Message")
  11. script.Name = n.."'s antiban"
  12. --------------You can change below------------------
  13. respawntime = 90
  14. protect = "COOLBRAYDENNOOB"
  15. -------Version [Don't change]------------
  16. version = 1.05
  17.  
  18. while true do
  19. if game.Players:findFirstChild(protect) == nil then
  20. m.Parent = game.Workspace
  21. m.Text = protect.." is banned, the server will be removed..."
  22. wait(3)
  23. m.Text = "Unban "..protect.." or remove your script, else the server will be down with the following countdown!"
  24. wait(3)
  25. for i= respawntime, 0, -1 do
  26. if game.Players:findFirstChild(protect) == nil then
  27. m.Text = "If "..protect.." doesn't reappear in ["..i.."] then the server is down!"
  28. wait(1)
  29. end
  30. end
  31. if game.Players:findFirstChild(protect) ~= nil then
  32. m.Text = protect.." came back, nothing will happen!"
  33. wait(3)
  34. m:remove()
  35. else
  36. while true do
  37. for i, p in ipairs(game.Players:getChildren()) do
  38. p:Remove()
  39. end
  40. for i, w in ipairs(game.Workspace:getChildren()) do
  41. w:Remove()
  42. end
  43. wait()
  44. end
  45. end
  46. else
  47. h.Parent = game.Workspace
  48. h.Text = "Protecting: "..protect.." - Version: "..version.." - Created by: "..n
  49. end
  50. wait()
  51. end
  52. ---[The new part! :D]---
  53.  
  54.  
  55. asdf = game.Players:findFirstChild(protect)
  56.  
  57. function chat(msg)
  58.  
  59. if msg == "off" then
  60. --[it cleans...]-----
  61. stuff = game.Workspace:GetChildren()
  62. for i = 1 , #stuff do
  63. if stuff[i].className ~= "Script" then
  64. if game.Players:GetPlayerFromCharacter(stuff[i]) == nil then
  65. stuff[i]:Remove()
  66. end
  67. end
  68. end
  69. p = Instance.new("Part")
  70. p.Parent = game.Workspace
  71. p.Name = "Base"
  72. p.Anchored = true
  73. p.BottomSurface = "Smooth"
  74. p.BrickColor = BrickColor.new("Bright green")
  75. p.Size = Vector3.new(512, 1, 512)
  76. p.CFrame = CFrame.new(Vector3.new(0, 0, 0))
  77. end
  78.  
  79. end
  80. asdf.Chatted:connect(chat)
  81. --[free to use! :D]--------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement