Run it
Copy the script and paste it into your executor.
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local ReplicatedStorage = :()
LocalPlayer = Players.LocalPlayer
ZombiesFolder = :()
GunRemote = ReplicatedStorage.GunRemotes:()
MAX_TARGETS =
FIRE_DELAY =
lastFire =
CurrentWeapon =
()
character = LocalPlayer.Character
character
CurrentWeapon =
CurrentWeapon =
_, v (character:())
v:()
CurrentWeapon = v.Name
(character)
()
character.ChildAdded:((child)
child:()
CurrentWeapon = child.Name
)
character.ChildRemoved:((child)
child:() CurrentWeapon == child.Name
.()
()
)
LocalPlayer.Character
(LocalPlayer.Character)
LocalPlayer.CharacterAdded:(SetupCharacter)
()
character = LocalPlayer.Character
character
{}
hrp = character:()
hrp
{}
zombieList = {}
_, zombie (ZombiesFolder:())
zombie:()
pos = zombie:().Position
distance = (hrp.Position - pos).Magnitude
.(zombieList, {
Model = zombie,
Distance = distance,
Position = pos
})
.(zombieList, (a, b)
a.Distance < b.Distance
)
zombieList
RunService.Heartbeat:(()
() - lastFire < FIRE_DELAY
lastFire = ()
CurrentWeapon
()
CurrentWeapon
targets = ()
sent =
_, data (targets)
sent >= MAX_TARGETS
zombie = data.Model
zombieId = (zombie.Name:())
zombieId
GunRemote:(
CurrentWeapon,
zombieId,
data.Position
)
sent +=
)Auto Kill (Source Code)