local ScreenGui = Instance.new("ScreenGui")
local OpenF = Instance.new("Frame")
local OpenB = Instance.new("TextButton")
local MainF = Instance.new("Frame")
local Title = Instance.new("TextLabel")
local AutoFarm = Instance.new("TextButton")
local Noclip = Instance.new("TextButton")
local WalkSpeed = Instance.new("TextButton")
local Close = Instance.new("TextButton")
--Properties:
ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
ScreenGui.Parent = game.CoreGui
OpenF.Name = "OpenF"
OpenF.Parent = ScreenGui
OpenF.Active = true
OpenF.BackgroundColor3 = Color3.new(0, 0, 0)
OpenF.BackgroundTransparency = 0.40000000596046
OpenF.Position = UDim2.new(0.92768085, 0, 0.626178563, 0)
OpenF.Size = UDim2.new(0, 98, 0, 28)
OpenB.Name = "OpenB"
OpenB.Parent = OpenF
OpenB.BackgroundColor3 = Color3.new(1, 1, 1)
OpenB.BackgroundTransparency = 1
OpenB.Position = UDim2.new(0.0102040814, 0, 0.0357142873, 0)
OpenB.Size = UDim2.new(0, 103, 0, 25)
OpenB.Font = Enum.Font.Gotham
OpenB.Text = "Open"
OpenB.TextColor3 = Color3.new(1, 1, 1)
OpenB.TextSize = 14
OpenB.MouseButton1Click:connect(function()
OpenF.Visible = false
MainF.Visible = true
end)
MainF.Name = "MainF"
MainF.Parent = ScreenGui
MainF.Active = true
MainF.BackgroundColor3 = Color3.new(0, 0, 0)
MainF.BackgroundTransparency = 0.40000000596046
MainF.Position = UDim2.new(0.369627506, 0, 0.30831641, 0)
MainF.Size = UDim2.new(0, 170, 0, 224)
MainF.Draggable = True
Title.Name = "Title"
Title.Parent = MainF
Title.Active = true
Title.BackgroundColor3 = Color3.new(0, 0, 0)
Title.BackgroundTransparency = 0.40000000596046
Title.Size = UDim2.new(0, 170, 0, 30)
Title.Font = Enum.Font.GothamBold
Title.Text = "Attack On Zombies"
Title.TextColor3 = Color3.new(1, 1, 1)
Title.TextSize = 14
AutoFarm.Name = "AutoFarm"
AutoFarm.Parent = MainF
AutoFarm.BackgroundColor3 = Color3.new(0, 0, 0)
AutoFarm.BackgroundTransparency = 0.40000000596046
AutoFarm.Position = UDim2.new(0.0588235334, 0, 0.214285731, 0)
AutoFarm.Size = UDim2.new(0, 150, 0, 26)
AutoFarm.Font = Enum.Font.Gotham
AutoFarm.Text = "Auto Farm"
AutoFarm.TextColor3 = Color3.new(1, 1, 1)
AutoFarm.TextSize = 14
AutoFarm.MouseButton1Click:connect(function()
local groundDistance = 8
local Player = game:GetService("Players").LocalPlayer
local function getNearest()
local nearest, dist = nil, 99999
for _,v in pairs(game.Workspace.BossFolder:GetChildren()) do
if(v:FindFirstChild("Head")~=nil)then
local m =(Player.Character.Head.Position-v.Head.Position).magnitude
if(m