MADE BY froggysfriend
FEATURE:
- instantly kill zombies
- it will also headshot
- .
- DEV NOTE:
- YOU MUST EXECUTE THE SCRIPT BEFORE YOU SPAWN IN, OTHERWISE IT WILL NOT WORK!!
- .
- https://www.roblox.com/games/443406476/Project-Lazarus-ZOMBIES-NEW-PM-9
SCRIPT:
local __namecall = getrawmetatable(game).__namecall
local old;
local RunService = game:GetService("RunService")
old = hookmetamethod(game, "__namecall", function(...)
local self = ...;
local oArgs = {...};
local args = table.clone({...});
table.remove(args, 1);
local Method = getnamecallmethod()
if tostring(self) == "UpdateDamageKey" and Method == 'InvokeServer' then
getgenv().Key = args[1]
return old( self, unpack(args) )
end
return old(...);
end)
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local function GetClosest()
local Character = LocalPlayer.Character
local HumanoidRootPart = Character and Character:FindFirstChild("HumanoidRootPart")
if not (Character or HumanoidRootPart) then return end
local TargetDistance = math.huge
local Target
for i,v in ipairs(workspace.Baddies:GetChildren()) do
if v and v:FindFirstChild("HumanoidRootPart") then
local TargetHRP = v.HumanoidRootPart
local mag = (HumanoidRootPart.Position - TargetHRP.Position).magnitude
if mag < TargetDistance then
TargetDistance = mag
Target = v
end
end
end
return Target
end
local debounce, debounce_func
function debounce_func(time)
debounce = true
wait(time)
debounce = false
end
function killaura_step()
if debounce then return end
local a = GetClosest()
if a and a:FindFirstChild("HeadBox") and getgenv().Key then
debounce_func(0.03)
a.Humanoid.Damage:FireServer({
["BodyPart"] = a.HeadBox,
["Force"] = 0,
["Damage"] = a.Humanoid.Health,
["GibPower"] = 0
}, getgenv().Key)
end
end
do
RunService:UnbindFromRenderStep("fuckoff")
RunService:BindToRenderStep( "fuckoff" , 200 , killaura_step );
end