Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PLAYER = game.Players.LocalPlayer
- MOUSE = PLAYER:GetMouse()
- CC = game.Workspace.CurrentCamera
- ENABLED = false
- ESP_ENABLED = false
- OC = false
- OC2 = false
- _G.FREE_FOR_ALL = true
- _G.BIND = 50
- _G.ESP_BIND = 52
- _G.CHANGE_AIM = 'q'
- OPENCLOSE = 'l'
- DESTROY = 'x'
- OPENCLOSE2 = 'p'
- _G.AIM_AT = 'Head'
- wait(1)
- function GetNearestPlayerToMouse()
- local PLAYERS = {}
- local PLAYER_HOLD = {}
- local DISTANCES = {}
- for i, v in pairs(game.Workspace.Zombies:GetChildren()) do
- if v ~= PLAYER then
- table.insert(PLAYERS, v)
- end
- end
- for i, v in pairs(PLAYERS) do
- if _G.FREE_FOR_ALL == false then
- if v and (v) ~= nil and v.TeamColor ~= PLAYER.TeamColor then
- local AIM = v:FindFirstChild(_G.AIM_AT)
- if AIM ~= nil then
- local DISTANCE = (AIM.Position - game.Workspace.CurrentCamera.CoordinateFrame.p).magnitude
- local RAY = Ray.new(game.Workspace.CurrentCamera.CoordinateFrame.p, (MOUSE.Hit.p - CC.CoordinateFrame.p).unit * DISTANCE)
- local HIT,POS = game.Workspace:FindPartOnRay(RAY, game.Workspace)
- local DIFF = math.floor((POS - AIM.Position).magnitude)
- PLAYER_HOLD[v.Name .. i] = {}
- PLAYER_HOLD[v.Name .. i].dist = DISTANCE
- PLAYER_HOLD[v.Name .. i].plr = v
- PLAYER_HOLD[v.Name .. i].diff = DIFF
- table.insert(DISTANCES, DIFF)
- end
- end
- elseif _G.FREE_FOR_ALL == true then
- local AIM = v:FindFirstChild(_G.AIM_AT)
- if AIM ~= nil then
- local DISTANCE = (AIM.Position - game.Workspace.CurrentCamera.CoordinateFrame.p).magnitude
- local RAY = Ray.new(game.Workspace.CurrentCamera.CoordinateFrame.p, (MOUSE.Hit.p - CC.CoordinateFrame.p).unit * DISTANCE)
- local HIT,POS = game.Workspace:FindPartOnRay(RAY, game.Workspace)
- local DIFF = math.floor((POS - AIM.Position).magnitude)
- PLAYER_HOLD[v.Name .. i] = {}
- PLAYER_HOLD[v.Name .. i].dist = DISTANCE
- PLAYER_HOLD[v.Name .. i].plr = v
- PLAYER_HOLD[v.Name .. i].diff = DIFF
- table.insert(DISTANCES, DIFF)
- end
- end
- end
- if unpack(DISTANCES) == nil then
- return false
- end
- local L_DISTANCE = math.floor(math.min(unpack(DISTANCES)))
- if L_DISTANCE > 20 then
- return false
- end
- for i, v in pairs(PLAYER_HOLD) do
- if v.diff == L_DISTANCE then
- return v.plr
- end
- end
- return false
- end
- GUI_MAIN = Instance.new('ScreenGui', game.CoreGui)
- GUI_TARGET = Instance.new('TextLabel', GUI_MAIN)
- GUI_AIM_AT = Instance.new('TextLabel', GUI_MAIN)
- GUI_CREDITS = Instance.new('TextLabel', GUI_MAIN)
- GUI_MAIN.Name = 'AIMBOT'
- GUI_TARGET.Size = UDim2.new(0,200,0,30)
- GUI_TARGET.BackgroundTransparency = 1.5
- GUI_TARGET.BackgroundColor = BrickColor.new('Fossil')
- GUI_TARGET.BorderSizePixel = 0
- GUI_TARGET.Position = UDim2.new(0.5,-100,0,0)
- GUI_TARGET.Text = 'AIMBOT : Loaded, Press F9 for instructions!'
- GUI_TARGET.TextColor3 = Color3.new(1,1,1)
- GUI_TARGET.TextStrokeTransparency = 1
- GUI_TARGET.TextWrapped = true
- GUI_TARGET.FontSize = 'Size24'
- GUI_TARGET.Font = 'SourceSansBold'
- GUI_TARGET.TextScaled = true
- GUI_CREDITS.Size = UDim2.new(0, 237, 0, 14)
- GUI_CREDITS.BackgroundTransparency = 1.5
- GUI_CREDITS.BackgroundColor = BrickColor.new('Fossil')
- GUI_CREDITS.BorderSizePixel = 0
- GUI_CREDITS.Position = UDim2.new(0.5,-110,0,60)
- GUI_CREDITS.Text = 'Gui and half of the script made by LAZ3R#3702'
- GUI_CREDITS.TextColor3 = Color3.new(1,1,1)
- GUI_CREDITS.TextStrokeTransparency = 1
- GUI_CREDITS.TextWrapped = true
- GUI_CREDITS.Font = 'SourceSansBold'
- GUI_CREDITS.TextSize = 14
- GUI_CREDITS.TextScaled = true
- GUI_AIM_AT.Size = UDim2.new(0,200,0,20)
- GUI_AIM_AT.BackgroundTransparency = 1.5
- GUI_AIM_AT.BackgroundColor = BrickColor.new('Fossil')
- GUI_AIM_AT.BorderSizePixel = 0
- GUI_AIM_AT.Position = UDim2.new(0.5,-100,0,30)
- GUI_AIM_AT.Text = 'AIMING : HEAD'
- GUI_AIM_AT.TextColor3 = Color3.new(1,1,1)
- GUI_AIM_AT.TextStrokeTransparency = 1
- GUI_AIM_AT.TextWrapped = true
- GUI_AIM_AT.FontSize = 'Size18'
- GUI_AIM_AT.Font = 'SourceSansBold'
- local MoreStuff = Instance.new("ScreenGui")
- local MainMoreStuffFrame = Instance.new("Frame")
- local Title = Instance.new("TextLabel")
- local NoClip = Instance.new("TextButton")
- local BuyWeapon = Instance.new("TextButton")
- local SellWeapon = Instance.new("TextButton")
- local WeaponBox = Instance.new("TextBox")
- local PrintWeapons = Instance.new("TextButton")
- MoreStuff.Name = "MoreStuff"
- MoreStuff.Parent = game.CoreGui
- MainMoreStuffFrame.Name = "MainMoreStuffFrame"
- MainMoreStuffFrame.Parent = MoreStuff
- MainMoreStuffFrame.BackgroundColor3 = Color3.new(0.168627, 0.168627, 0.168627)
- MainMoreStuffFrame.BorderColor3 = Color3.new(0.14902, 0.14902, 0.14902)
- MainMoreStuffFrame.Position = UDim2.new(0.383317709, 0, 0.25390625, 0)
- MainMoreStuffFrame.Size = UDim2.new(0, 248, 0, 251)
- MainMoreStuffFrame.Active = true
- MainMoreStuffFrame.Draggable = true
- MainMoreStuffFrame.Visible = false
- Title.Name = "Title"
- Title.Parent = MainMoreStuffFrame
- Title.BackgroundColor3 = Color3.new(0.113725, 0.113725, 0.113725)
- Title.BorderColor3 = Color3.new(0.14902, 0.14902, 0.14902)
- Title.Position = UDim2.new(0.000253200531, 0, -0.00107383728, 0)
- Title.Size = UDim2.new(0, 248, 0, 44)
- Title.Font = Enum.Font.SourceSans
- Title.Text = "More Stuff"
- Title.TextColor3 = Color3.new(1, 1, 1)
- Title.TextScaled = true
- Title.TextSize = 14
- Title.TextWrapped = true
- NoClip.Name = "NoClip"
- NoClip.Parent = MainMoreStuffFrame
- NoClip.BackgroundColor3 = Color3.new(0.113725, 0.113725, 0.113725)
- NoClip.BorderColor3 = Color3.new(0.14902, 0.14902, 0.14902)
- NoClip.Position = UDim2.new(0.225806445, 0, 0.198674113, 0)
- NoClip.Size = UDim2.new(0, 134, 0, 47)
- NoClip.Modal = true
- NoClip.Selected = true
- NoClip.Font = Enum.Font.SourceSans
- NoClip.Text = "noclip : OFF"
- NoClip.TextColor3 = Color3.new(1, 1, 1)
- NoClip.TextScaled = true
- NoClip.TextSize = 14
- NoClip.TextWrapped = true
- BuyWeapon.Name = "BuyWeapon"
- BuyWeapon.Parent = MainMoreStuffFrame
- BuyWeapon.BackgroundColor3 = Color3.new(0.113725, 0.113725, 0.113725)
- BuyWeapon.BorderColor3 = Color3.new(0.14902, 0.14902, 0.14902)
- BuyWeapon.Position = UDim2.new(0, 0, 0.589112282, 0)
- BuyWeapon.Size = UDim2.new(0, 101, 0, 47)
- BuyWeapon.Modal = true
- BuyWeapon.Selected = true
- BuyWeapon.Font = Enum.Font.SourceSans
- BuyWeapon.Text = "Buy weapon"
- BuyWeapon.TextColor3 = Color3.new(1, 1, 1)
- BuyWeapon.TextScaled = true
- BuyWeapon.TextSize = 14
- BuyWeapon.TextWrapped = true
- SellWeapon.Name = "SellWeapon"
- SellWeapon.Parent = MainMoreStuffFrame
- SellWeapon.BackgroundColor3 = Color3.new(0.113725, 0.113725, 0.113725)
- SellWeapon.BorderColor3 = Color3.new(0.14902, 0.14902, 0.14902)
- SellWeapon.Position = UDim2.new(0.592741907, 0, 0.589112282, 0)
- SellWeapon.Size = UDim2.new(0, 101, 0, 47)
- SellWeapon.Modal = true
- SellWeapon.Selected = true
- SellWeapon.Font = Enum.Font.SourceSans
- SellWeapon.Text = "Sell weapon"
- SellWeapon.TextColor3 = Color3.new(1, 1, 1)
- SellWeapon.TextScaled = true
- SellWeapon.TextSize = 14
- SellWeapon.TextWrapped = true
- WeaponBox.Name = "WeaponBox"
- WeaponBox.Parent = MainMoreStuffFrame
- WeaponBox.BackgroundColor3 = Color3.new(0.113725, 0.113725, 0.113725)
- WeaponBox.BorderColor3 = Color3.new(0.14902, 0.14902, 0.14902)
- WeaponBox.Position = UDim2.new(0.0927419364, 0, 0.800796807, 0)
- WeaponBox.Size = UDim2.new(0, 200, 0, 50)
- WeaponBox.Font = Enum.Font.SourceSans
- WeaponBox.Text = "Weapon name"
- WeaponBox.TextColor3 = Color3.new(1, 1, 1)
- WeaponBox.TextSize = 14
- PrintWeapons.Name = "PrintWeapons"
- PrintWeapons.Parent = MainMoreStuffFrame
- PrintWeapons.BackgroundColor3 = Color3.new(0.113725, 0.113725, 0.113725)
- PrintWeapons.BorderColor3 = Color3.new(0.14902, 0.14902, 0.14902)
- PrintWeapons.Position = UDim2.new(0.27822578, 0, 0.449670076, 0)
- PrintWeapons.Size = UDim2.new(0, 107, 0, 26)
- PrintWeapons.Modal = true
- PrintWeapons.Selected = true
- PrintWeapons.Font = Enum.Font.SourceSans
- PrintWeapons.Text = "Print and sort weapons"
- PrintWeapons.TextColor3 = Color3.new(1, 1, 1)
- PrintWeapons.TextScaled = true
- PrintWeapons.TextSize = 14
- PrintWeapons.TextWrapped = true
- local TRACK = false
- function CREATE(BASE, TEAM)
- local ESP_MAIN = Instance.new('BillboardGui', PLAYER.PlayerGui)
- local ESP_DOT = Instance.new('Frame', ESP_MAIN)
- local ESP_NAME = Instance.new('TextLabel', ESP_MAIN)
- ESP_MAIN.Name = 'ESP'
- ESP_MAIN.Adornee = BASE
- ESP_MAIN.AlwaysOnTop = true
- ESP_MAIN.ExtentsOffset = Vector3.new(0, 1, 0)
- ESP_MAIN.Size = UDim2.new(0, 5, 0, 5)
- ESP_DOT.Name = 'DOT'
- ESP_DOT.BackgroundColor = BrickColor.new('Bright red')
- ESP_DOT.BackgroundTransparency = 0.3
- ESP_DOT.BorderSizePixel = 0
- ESP_DOT.Position = UDim2.new(-0.5, 0, -0.5, 0)
- ESP_DOT.Size = UDim2.new(2, 0, 2, 0)
- ESP_DOT.Visible = true
- ESP_DOT.ZIndex = 10
- ESP_NAME.Name = 'NAME'
- ESP_NAME.BackgroundColor3 = Color3.new(255, 255, 255)
- ESP_NAME.BackgroundTransparency = 1
- ESP_NAME.BorderSizePixel = 0
- ESP_NAME.Position = UDim2.new(0, 0, 0, -40)
- ESP_NAME.Size = UDim2.new(1, 0, 10, 0)
- ESP_NAME.Visible = true
- ESP_NAME.ZIndex = 10
- ESP_NAME.Font = 'ArialBold'
- ESP_NAME.FontSize = 'Size14'
- ESP_NAME.Text = BASE.Parent.Name:upper()
- ESP_NAME.TextColor = BrickColor.new('Bright red')
- end
- function CLEAR()
- for _,v in pairs(PLAYER.PlayerGui:children()) do
- if v.Name == 'ESP' and v:IsA('BillboardGui') then
- v:Destroy()
- end
- end
- end
- function FIND()
- CLEAR()
- TRACK = true
- spawn(function()
- while wait() do
- if TRACK then
- CLEAR()
- for i,v in pairs(game.Workspace.Zombies:GetChildren()) do
- if v and v:FindFirstChild('Head') then
- if _G.FREE_FOR_ALL == false then
- if v.TeamColor ~= PLAYER.TeamColor then
- if v:FindFirstChild('Head') then
- CREATE(v.Head, true)
- end
- end
- else
- if v:FindFirstChild('Head') then
- CREATE(v.Head, true)
- end
- end
- end
- end
- end
- end
- wait(1)
- end)
- end
- MOUSE.KeyDown:connect(function(KEY)
- KEY = KEY:lower():byte()
- if KEY == _G.BIND then
- ENABLED = true
- end
- end)
- print("--------------------")
- print("Instructions :")
- print("NOTE : u may get a lot of lag spikes if u are using free exploit like sk8r, jjsploit etc")
- print("NOTE : Aimbot is already enabled automatically, there is no hotkey!!")
- print("NOTE : Sometimes the keybinds don't work so please rejoin if this happens.")
- print("Press Q to change Aim")
- print("Press L to open/close the main gui")
- print("Press P to open/close the more stuff gui")
- print("Press X to delete the gui")
- print("Press left alt for esp ;)")
- print("Once Zombies have spawned, hold left ctrl and it will aim at them!")
- print("All set? Alright, have fun!")
- print("Made By LAZ3R#3702")
- print("--------------------")
- BuyWeapon.MouseButton1Click:connect(function()
- game.ReplicatedStorage.RemoteEvents.BuyWeapon:FireServer(WeaponBox.Text)
- end)
- SellWeapon.MouseButton1Click:connect(function()
- game.ReplicatedStorage.RemoteEvents.SellWeapon:FireServer(WeaponBox.Text)
- end)
- PrintWeapons.MouseButton1Click:connect(function()
- warn("--OVERKILL PACK--")
- print("Dynamite")
- print("M203")
- print("USAS-12")
- print("PSG1")
- print("M60")
- warn("--PIRATES VS NINJAS PACK--")
- print("Flintlock Pistol")
- print("Shuriken")
- print("Blunderbuss")
- print("Crossbow")
- print("Cutlass")
- warn("--BBQ PACK--")
- print("Flare Gun")
- print("Fire Axe")
- print("Sawed-off Shotgun")
- print("Flamethrower")
- print("Vector")
- warn("--Demolitions PACK--")
- print("C4")
- print("Python")
- print("Sledgehammer")
- print("CAR-15")
- print("RG-6")
- warn("--CLASSIC PACK--")
- print("SMG")
- print("Sword")
- print("Shotgun")
- print("Sniper Rifle")
- print("Rocket Launcher")
- warn("--SWAT PACK--")
- print("USP")
- print("Stun Grenade")
- print("Gas Grenade")
- print("MP5")
- print("R870")
- warn("--NON PACK--")
- print("Baseball Bat")
- print("AUG")
- print("DMR")
- print("Flintlock Rifle")
- print("M4")
- print("M1 Garand")
- print("AK-47")
- print("Luger")
- print("Pistol")
- print("Revolver")
- print("Stakeout")
- print("Sterling")
- print("Thompson")
- print("Trench Gun")
- print("Laser Rifle")
- print("Sentry Gun")
- print("AA-12")
- print("Double Barreled Shotgun")
- print("Intervention")
- print("Laser Pistol")
- print("M16")
- print("Minigun")
- print("M249")
- print("Chainsaw")
- print("UMP45")
- print("Grenade")
- print("Zombie Bait")
- print("Molotov")
- print("Landmine")
- print("M82")
- print("Laser Minigun")
- print("M93R")
- print("Military Axe")
- print("First Aid Kit")
- print("RPK")
- print("Katana")
- print("Energy Rifle")
- print("M1014")
- print("Energy Sword")
- print("Laser SMG")
- print("Laser Shotgun")
- print("M79")
- print("RPG-7")
- print("P90")
- print("Desert Eagle")
- print("Micro Uzi")
- print("SCAR-H")
- print("Energy Drink")
- print("Gas Can")
- print("Snowball")
- print("M24")
- end)
- NoClip.MouseButton1Click:connect(function()
- if NoClip.Text == "noclip : OFF" then
- NOCLIPP = true
- NoClip.Text = "noclip : ON"
- Stepped = game:GetService("RunService").Stepped:Connect(function()
- if not NOCLIPP == false then
- for a, b in pairs(Workspace:GetChildren()) do
- if b.Name == PLAYER.Name then
- for i, v in pairs(Workspace[PLAYER.Name]:GetChildren()) do
- if v:IsA("BasePart") then
- v.CanCollide = false
- end end end end
- else
- Stepped:Disconnect()
- end
- end)
- elseif NoClip.Text == "noclip : ON" then
- NOCLIPP = false
- NoClip.Text = "noclip : OFF"
- end
- end)
- MOUSE.KeyDown:connect(function(KEY)
- if KEY == OPENCLOSE then
- if GUI_TARGET.Visible == true and GUI_AIM_AT.Visible == true and GUI_CREDITS.Visible == true then
- OC = false
- GUI_TARGET.Visible = false
- GUI_AIM_AT.Visible = false
- GUI_CREDITS.Visible = false
- else if GUI_TARGET.Visible == false and GUI_AIM_AT.Visible == false and GUI_CREDITS.Visible == false then
- OC = true
- GUI_TARGET.Visible = true
- GUI_AIM_AT.Visible = true
- GUI_CREDITS.Visible = true
- end
- end
- end
- end)
- MOUSE.KeyDown:connect(function(KEY)
- if KEY == OPENCLOSE2 then
- if MainMoreStuffFrame.Visible == true then
- OC2 = false
- MainMoreStuffFrame.Visible = false
- Title.Visible = false
- NoClip.Visible = false
- WeaponBox.Visible = false
- PrintWeapons.Visible = false
- SellWeapon.Visible = false
- BuyWeapon.Visible = false
- else if MainMoreStuffFrame.Visible == false then
- OC2 = true
- MainMoreStuffFrame.Visible = true
- Title.Visible = true
- NoClip.Visible = true
- WeaponBox.Visible = true
- PrintWeapons.Visible = true
- SellWeapon.Visible = true
- BuyWeapon.Visible = true
- end
- end
- end
- end)
- MOUSE.KeyDown:connect(function(KEY)
- if KEY == DESTROY then
- game.CoreGui:FindFirstChild("AIMBOT"):Destroy()
- game.CoreGui:FindFirstChild("MoreStuff"):Destroy()
- end
- end)
- MOUSE.KeyUp:connect(function(KEY)
- KEY = KEY:lower():byte()
- if KEY == _G.BIND then
- ENABLED = false
- end
- end)
- MOUSE.KeyDown:connect(function(KEY)
- KEY = KEY:lower():byte()
- if KEY == _G.ESP_BIND then
- if ESP_ENABLED == false then
- FIND()
- ESP_ENABLED = true
- print('ESP : ON')
- elseif ESP_ENABLED == true then
- wait()
- CLEAR()
- TRACK = false
- ESP_ENABLED = true
- print('ESP : OFF')
- end
- end
- end)
- MOUSE.KeyDown:connect(function(KEY)
- if KEY == _G.CHANGE_AIM then
- if _G.AIM_AT == 'Head' then
- _G.AIM_AT = 'Torso'
- GUI_AIM_AT.Text = 'AIMING : TORSO'
- elseif _G.AIM_AT == 'Torso' then
- _G.AIM_AT = 'Head'
- GUI_AIM_AT.Text = 'AIMING : HEAD'
- end
- end
- end)
- game:GetService('RunService').RenderStepped:connect(function()
- if ENABLED then
- local TARGET = GetNearestPlayerToMouse()
- if (TARGET ~= false) then
- local AIM = TARGET:FindFirstChild(_G.AIM_AT)
- if AIM then
- CC.CoordinateFrame = CFrame.new(CC.CoordinateFrame.p, AIM.CFrame.p)
- end
- GUI_TARGET.Text = 'AIMBOT : ON'
- else
- GUI_TARGET.Text = 'AIMBOT : OFF'
- end
- end
- end)
- repeat
- wait()
- if ESP_ENABLED == true then
- FIND()
- end
- until ESP_ENABLED == false
- wait()
- _G.FREE_FOR_ALL = true
- _G.BIND = 50 -- LEFT CTRL
- _G.ESP_BIND = 52 -- LEFT ALT
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement