Youtube_AppealsCat

AUT One Shot/Instant Kill Script

Oct 4th, 2024
669
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.94 KB | None | 0 0
  1. getgenv().AutoOneShotting = true
  2.  
  3. task.spawn(function()
  4.     local connection
  5.     connection = game:GetService("RunService").RenderStepped:Connect(function()
  6.         if getgenv().AutoOneShotting == true then
  7.             pcall(function()
  8.                 for _,k in ipairs(workspace.Living:GetChildren()) do
  9.                     if k:IsA("Model") and k:FindFirstChild("Head") and k.Head:IsA("Part") and k.Head.Name == "Head" and k.Head ~= game.Players.LocalPlayer.Character.Head then
  10.                         if (k.Head.Position - game.Players.LocalPlayer.Character.Head.Position).magnitude <= 35 then
  11.                             if k:FindFirstChildOfClass("Humanoid").Health ~= k:FindFirstChildOfClass("Humanoid").MaxHealth then k:FindFirstChildOfClass("Humanoid").Health = 0;end
  12.                         end
  13.                     end
  14.                 end
  15.             end)
  16.         else
  17.             connection:Disconnect();
  18.         end
  19.     end)
  20. end)
Add Comment
Please, Sign In to add comment