TheYoutuber_Pro

here

Jan 9th, 2022 (edited)
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local whitelisted = {}
  2. local function wlplr(stringg)
  3. Count = 0
  4. for _, v in pairs(game:GetService("Players"):GetPlayers()) do
  5. if stringg:lower() == (v.Name:lower()):sub(1, #stringg) then
  6. if not table.find(whitelisted, v.Name) then
  7. table.insert(whitelisted, v.Name)
  8. print("You whitelisted "..v.Name..".")
  9. return v
  10. end
  11. end
  12. end
  13. end
  14. local function blplr(stringg)
  15. Count = 0
  16. for _, v in pairs(game:GetService("Players"):GetPlayers()) do
  17. if stringg:lower() == (v.Name:lower()):sub(1, #stringg) then
  18. if table.find(whitelisted, v.Name) then
  19. for i, e in pairs(whitelisted) do
  20. Count = Count + 1
  21. if e == v.Name then
  22. table.remove(whitelisted, Count)
  23. end
  24. end
  25. print("You blacklisted "..v.Name..".")
  26. return v
  27. end
  28. end
  29. end
  30. end
  31. owner.Chatted:connect(function(msg)
  32. if string.lower(string.sub(msg,1,3)) == ";wl" then
  33. guy = string.lower(string.sub(msg,5,100))
  34. wlplr(guy)
  35. elseif string.lower(string.sub(msg,1,3)) == ";bl" then
  36. guy = string.lower(string.sub(msg,5,100))
  37. blplr(guy)
  38. end
  39. end)
Add Comment
Please, Sign In to add comment