Advertisement
Guest User

Untitled

a guest
Dec 11th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. local players = game:GetService("Players")
  2.  
  3. local plr = game.Players.LocalPlayer
  4. local char = workspace:WaitForChild(plr.Name)
  5.  
  6. local dead = false
  7.  
  8. local blackList = {}
  9.  
  10. plr.Chatted:Connect(function(chat)
  11. local text = string.split(chat, " ")
  12. if string.lower(text[1]) == ";blacklist" then
  13. if string.lower(text[2]) ~= "all" then
  14. blackList[string.lower(text[2])]=true
  15. else
  16. for i,v in pairs(game.Players:GetPlayers()) do
  17. blackList[string.lower(v.Name)]=true
  18. end
  19. end
  20. elseif string.lower(text[1]) == ";unblacklist" then
  21. if string.lower(text[2]) ~= "all" then
  22. blackList[string.lower(text[2])]=nil
  23. else
  24. for i,v in pairs(blackList) do
  25. blackList[i]=nil
  26. end
  27. end
  28. end
  29. end)
  30.  
  31. while wait() do
  32. local char = workspace:FindFirstChild(plr.Name)
  33. if char then
  34. local sword = char:FindFirstChildOfClass("Tool")
  35. if sword then
  36. local children = players:GetPlayers()
  37. for i,v in pairs(children) do
  38. if v ~= plr and blackList[string.lower(v.Name)] then
  39. local thisChar = workspace:FindFirstChild(v.Name)
  40. if thisChar then
  41. thisChar:SetPrimaryPartCFrame(char.PrimaryPart.CFrame*CFrame.new(1,0,-1.5))
  42. end
  43. end
  44. end
  45. end
  46. end
  47. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement