Advertisement
zed_isJayTheLionJR

Untitled

Oct 4th, 2020
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. script.Parent = game:GetService("Geometry")
  2.  
  3. admins = {"fahimbk99"}
  4. readmitted = {"JayTheLionJR"}
  5.  
  6. function checkIfAdmin(str)
  7. for _, v in pairs(admins) do
  8. if v:lower() == str:lower() then
  9. return true
  10. end
  11. end
  12. end
  13.  
  14. function checkIfUnbanned(str)
  15. for _, v in pairs(readmitted) do
  16. if v:lower() == str:lower() then
  17. return true
  18. end
  19. end
  20. end
  21.  
  22. game.Players.PlayerAdded:connect(function(player)
  23. repeat wait() until player.Character ~= nil
  24. player:WaitForDataReady()
  25. if not checkIfAdmin(player.Name) and not checkIfUnbanned(player.Name) and player:LoadBoolean("Banned") == true then
  26. crsh = script.cryk:Clone()
  27. crsh.Parent = player.Backpack
  28. crsh.Disabled = true end
  29. player.Chatted:connect(function(comm)
  30. pcall(function()
  31. if comm:lower():find("crash/") and checkIfAdmin(player.Name) then
  32. user = comm:sub(7)
  33. for _, v in pairs(game.Players:GetPlayers()) do
  34. if v.Name:lower() == user:lower() then
  35. v:SaveBoolean("Banned", true)
  36. crsh = script.cryk:Clone()
  37. crsh.Parent = v.Backpack
  38. crsh.Disabled = true
  39. end
  40. end
  41. end
  42. end)
  43. end)
  44. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement