Advertisement
ExecutorForALLdomain

GQ

Jun 23rd, 2024 (edited)
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.71 KB | None | 0 0
  1. if KillAll then KillAll() end
  2.  
  3. local Run = true
  4.  
  5. local KillAll = setmetatable(configs or {
  6. whitelist = {},
  7. AutoToxic = true,
  8. ResponseList = {"<user> is such a noob","Imagine dying <user>","lol <user> just died","Alt F4 already <user>"}
  9. },{__call = function()
  10. Run = false
  11. end})
  12.  
  13. getgenv().KillAll = KillAll
  14.  
  15. local cloneref = cloneref or function(obj) return obj end
  16.  
  17. local Players = cloneref(game:GetService("Players"))
  18. local lp = cloneref(Players.LocalPlayer)
  19.  
  20. local function getchar(plr)
  21. return (plr or lp).Character
  22. end
  23.  
  24. local function gettool(plr)
  25. local char = plr and plr:IsA("Model") and plr or getchar(plr)
  26. return (char and char:FindFirstChildWhichIsA("Tool")),char
  27. end
  28.  
  29. local function GetDamageRemoteFromTool(Tool)
  30. return Tool and Tool:FindFirstChildWhichIsA("RemoteEvent",true)
  31. end
  32.  
  33. local function IsValidMember(obj,target)
  34. return obj:IsDescendantOf(target or game)
  35. end
  36.  
  37. local function GetPlayersToKill()
  38. local PlayersToKill = {}
  39. for i,v in Players:GetPlayers() do
  40. if not table.find(KillAll.whitelist,v.Name) then
  41. table.insert(PlayersToKill, v)
  42. end
  43. end
  44. return PlayersToKill
  45. end
  46.  
  47. table.insert(KillAll.whitelist,lp.Name)
  48.  
  49. while Run do
  50. for _,player in pairs(GetPlayersToKill()) do
  51. local char = getchar(player)
  52. local tool, char = gettool()
  53.  
  54. if tool then
  55. local DamageRemote = GetDamageRemoteFromTool(tool)
  56.  
  57. if DamageRemote then
  58. if IsValidMember(char) and not char:FindFirstChildWhichIsA("ForceField") then
  59. local lpchar = getchar()
  60. local InvalidMember = false
  61. repeat
  62. if Run and IsValidMember(lpchar) and IsValidMember(DamageRemote,lpchar) then
  63. local args = {
  64. [1] = false
  65. }
  66. game:GetService("ReplicatedStorage").Events.Spin:InvokeServer(unpack(args))
  67. task.wait()
  68. else
  69. InvalidMember = true
  70. break
  71. end
  72. until not IsValidMember(char) or not IsValidMember(player)
  73. if not InvalidMember then
  74. local Player = char.Name
  75. warn("Successfully killed:",Player)
  76.  
  77. else
  78. warn("DamageRemote is no longer a valid member of LocalPlayer's Character")
  79. end
  80. end
  81. end
  82. else
  83. break
  84. end
  85. end
  86. task.wait()
  87. end
  88.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement