Advertisement
2AreYouMental110

Pilfering Pirates AUTO KILL

Jul 16th, 2023
1,324
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.70 KB | None | 0 0
  1. -- https://www.roblox.com/games/6104994594/Pilfering-Pirates
  2. -- if you wanna stop it, execute another tab this code: getgenv().autokillstop = true
  3.  
  4.  
  5. print("loading")
  6. getgenv().autokillstop = false
  7. local localplr = game.Players.LocalPlayer
  8. while true do
  9.     if getgenv().autokillstop == true then
  10.         return
  11.     end
  12.     for i,v in pairs(game.Players:GetPlayers()) do
  13.         if getgenv().autokillstop == true then
  14.             return
  15.         end
  16.         if v.Team ~= localplr.Team and v.Character and v.Character:FindFirstChild("HumanoidRootPart") and v.Character:FindFirstChild("Humanoid") and v.Character.Humanoid.Health > 0 then
  17.             print(v.Name)
  18.             repeat
  19.                 wait(.05)
  20.                 if getgenv().autokillstop == true then
  21.                     return
  22.                 end
  23.                 if v.Character and v.Character:FindFirstChild("HumanoidRootPart") and localplr.Character and localplr.Character:FindFirstChild("Humanoid") and localplr.Character:FindFirstChild("Sword") then
  24.                     localplr.Character:PivotTo(v.Character.HumanoidRootPart.CFrame * CFrame.new(0,math.random(-1,1),2))
  25.                     wait(.05)
  26.                 elseif v.Character and v.Character:FindFirstChild("HumanoidRootPart") and localplr.Character and localplr.Character:FindFirstChild("Humanoid") and not localplr.Character:FindFirstChild("Sword") and localplr.Backpack:FindFirstChild("Sword") then
  27.                     game:GetService("ReplicatedStorage").Remotes.EquipTool:FireServer(localplr.Backpack.Sword)
  28.                     wait(.5)
  29.                 end
  30.             until not v.Character:FindFirstChild("HumanoidRootPart") or v.Character.Humanoid.Health <= 0 or v.Team == localplr.Team
  31.         end
  32.     end
  33. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement