Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --[[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.]]--
  2. --[[Feedback and suggestions appreciated.]]--
  3.  
  4.  
  5. --Configuration--
  6.  
  7. bannedplayer = "treyden1587_payton27" --the person to ban
  8. banreason = "" --reason for ban
  9. anonymousbanner =true --if the banner is anonymous (e.g false)
  10. banner = "" -greenmachinejp-put whoever banned the person here
  11. enforceban =true --if the ban is enforced (e.g true)
  12. note = "" --e.g. message someone to appeal
  13.  
  14. --------------------------------------------------------------------------------------------------------------------------------------------------------
  15.  
  16. --Script--
  17.  
  18. game.Players.ChildAdded:connect(function(instance)
  19. if instance.Name == bannedplayer then
  20. if not enforceban == false then
  21. if anonymousbanner == true then
  22. game.Players[bannedplayer]:Kick("You are banned from this game by " .. "an anonymous player" .. ". Ban reason: " .. banreason .. ". " .. note .. ".")
  23. else
  24. game.Players[bannedplayer]:Kick("You are banned from this game by " .. banner .. ". Ban reason: " .. banreason .. ". " .. note .. ".")
  25. end
  26. end
  27.  
  28. end
  29. end)
  30.  
  31. --------------------------------------------------------------------------------------------------------------------------------------------------------
  32.  
  33. --[[Ban script written by /u/josephworld. Ban reason and note is displayed to player]]--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement