local Players = game:GetService("Players") local LocalPlayer = Players.LocalPlayer local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait() local RootPart = Character:WaitForChild("HumanoidRootPart") spawn(function() while true do local Zombies = workspace:FindFirstChild("Zombies") if Zombies then local closestHitbox local shortestDistance = math.huge for _, zombie in ipairs(Zombies:GetChildren()) do for _, descendant in ipairs(zombie:GetDescendants()) do if descendant:IsA("BasePart") and descendant.Name:lower():find("hitbox") then local distance = (RootPart.Position - descendant.Position).Magnitude if distance < shortestDistance then shortestDistance = distance closestHitbox = descendant end end end end if closestHitbox then closestHitbox:Destroy() end end task.wait(0.1) end end)