Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[This is a ban script I wrote. Put it in the workspace.]]-- --[[Currently only allows 1 player. Put multiple scripts if you need to ban more than 1 person.]]--
- --[[Feedback and suggestions appreciated.]]--
- --Configuration--
- bannedplayer = "treyden1587_payton27" --the person to ban
- banreason = "" --reason for ban
- anonymousbanner =true --if the banner is anonymous (e.g false)
- banner = "" -greenmachinejp-put whoever banned the person here
- enforceban =true --if the ban is enforced (e.g true)
- note = "" --e.g. message someone to appeal
- --------------------------------------------------------------------------------------------------------------------------------------------------------
- --Script--
- game.Players.ChildAdded:connect(function(instance)
- if instance.Name == bannedplayer then
- if not enforceban == false then
- if anonymousbanner == true then
- game.Players[bannedplayer]:Kick("You are banned from this game by " .. "an anonymous player" .. ". Ban reason: " .. banreason .. ". " .. note .. ".")
- else
- game.Players[bannedplayer]:Kick("You are banned from this game by " .. banner .. ". Ban reason: " .. banreason .. ". " .. note .. ".")
- end
- end
- end
- end)
- --------------------------------------------------------------------------------------------------------------------------------------------------------
- --[[Ban script written by /u/josephworld. Ban reason and note is displayed to player]]--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement