Run it
Copy the script and paste it into your executor.
Rayfield = (:())()
players = :()
player = players.LocalPlayer
character = player.Character player.CharacterAdded:()
HRP = character:()
humanoid = character:()
replicatedStorage = :()
gunRemote = replicatedStorage.Gun
TS = :()
= :()
auto_farm =
RunService = :()
zombieHeightOffset =
gunDataPath = replicatedStorage:()
gunDataModule = (gunDataPath)
antiAfk =
weaponName
prevZombie =
blockedZombies = {}
zombieToCount =
zombieTimer =
unfocusTimeZombie =
unfocusTimeBoss =
Window = Rayfield:({
Name = ,
Icon = ,
LoadingTitle = ,
LoadingSubtitle = ,
Theme = ,
ToggleUIKeybind = ,
DisableRayfieldPrompts = ,
DisableBuildWarnings = ,
ConfigurationSaving = {
Enabled = ,
FolderName = ,
FileName =
},
})
player.CharacterAdded:((newCharacter)
character = newCharacter
HRP = character:()
humanoid = character:()
)
(Zombie, Gun)
args = {
[] = {
[] = .(, , ),
[] = Zombie.Head.Position,
[] = Gun,
[] = Zombie.Head,
[] = Zombie.Head.Position,
[] = Zombie.Head.Position
}
}
gunRemote:((args))
(Name : )
result = gunDataModule[Name]
result
(,Name)
gunDataModule[Name]
VirtalInputService = :()
autoFarmTab = Window:(,)
autoFarmTab:({
Name = ,
CurrentValue = ,
Callback = (state)
auto_farm = state
.()
(,(auto_farm))
,
})
autoFarmTab:({
Name = ,
CurrentValue = ,
Callback = (state)
antiAfk = state
,
})
()
_, container ({player.Backpack, character})
_,item (container:())
item:()
item.Name ~=
item.Name
()
(weaponName)
()
tool = player.Backpack:(weaponName) character:(weaponName)
tool
tool.Parent = character
(zombieToCompare)
highestY = -
highestZombie =
zombieToCompare
_,zombie (.enemies:())
Head = zombie:()
otherHead = zombieToCompare:()
Head otherHead
Head.Position.Y > highestY Head.Position.Y <
(zombie.Head.Position - zombieToCompare.Head.Position).Magnitude <
(.(blockedZombies,zombie))
highestY = Head.Position.Y
highestZombie = zombie
highestZombie zombieToCompare
_,zombie (.enemies:())
Head = zombie:()
Head
Head.Position.Y > highestY
highestY = Head.Position.Y
highestZombie = zombie
highestZombie
testTab = Window:(, )
testTab:()
testTab:({
Name = ,
Callback = ()
weaponName = ()
weaponName
( , weaponName)
Rayfield:({
Title = ,
Content = , weaponName, ,
Duration = ,
Image =
})
()
,
})
(()
lastTime = ()
auto_farm
currentTime = ()
deltaTime = currentTime - lastTime
lastTime = currentTime
weaponName = ()
weaponName
autoFarmZombie
prevZombie
autoFarmZombie = (prevZombie)
autoFarmZombie = ()
zombieTimer += deltaTime
zombieToCount = autoFarmZombie
prevZombie = autoFarmZombie
boss = .BossFolder:()[]
autoFarmZombie boss
zombieTimer > unfocusTimeZombie
.(blockedZombies,zombieToCount)
zombieToCount =
zombieTimer =
boss
HRP.CFrame = boss.Head.CFrame + .(.(,),zombieHeightOffset,.(,))
(weaponName)
(boss, weaponName)
autoFarmZombie
HRP.CFrame = autoFarmZombie.Head.CFrame + .(,zombieHeightOffset,)
(weaponName)
(autoFarmZombie, weaponName)
()
weaponName
.(/ ((weaponName).Firerate))
.()
)
connection = RunService.Stepped:(()
auto_farm
HRP.Velocity = .zero
character.Torso.Velocity = .zero
)
(()
()
antiAfk
VirtalInputService:(, .KeyCode.M, , )
()
VirtalInputService:(, .KeyCode.M, , )
)Loads code from the internet. It downloads more code when it runs (loadstring + HttpGet), which can change after it was posted. From: sirius.menu.
open source with rayfield ui , was created for teaching someone else