Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Made and Designed by M60_4
- --Variables:
- local plrs = game:GetService("Players")
- local TeamBased = true; local teambasedswitch = "o"
- local presskeytoaim = true; local aimkey = "e"
- local raycast = false
- local espupdatetime = 5; local autoesp = false
- local lockaim = true; local lockangle = 5
- -- Instances:
- local AresenalHack = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local Title = Instance.new("TextLabel")
- local Border = Instance.new("Frame")
- local TeamBaseMode = Instance.new("TextLabel")
- local LoopESP = Instance.new("TextLabel")
- local ESP = Instance.new("TextLabel")
- local LockOnPlayer = Instance.new("TextLabel")
- --Properties:
- AresenalHack.Name = "Aresenal Hack"
- AresenalHack.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- AresenalHack.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- Frame.Parent = AresenalHack
- Frame.AnchorPoint = Vector2.new(0.0149999997, 0.975000024)
- Frame.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame.BackgroundTransparency = 1
- Frame.Position = UDim2.new(0.0149999997, 0, 0.975000024, 0)
- Frame.Size = UDim2.new(0.200000003, 0, 0.150000006, 0)
- Title.Name = "Title"
- Title.Parent = Frame
- Title.BackgroundColor3 = Color3.new(0, 1, 0.498039)
- Title.BackgroundTransparency = 1
- Title.Position = UDim2.new(0, 0, -0.200000003, 0)
- Title.Size = UDim2.new(1, 0, 0.200000003, 0)
- Title.Font = Enum.Font.SourceSansBold
- Title.Text = "ARSENAL HACK"
- Title.TextColor3 = Color3.new(1, 1, 1)
- Title.TextScaled = true
- Title.TextSize = 14
- Title.TextStrokeTransparency = 0
- Title.TextWrapped = true
- Title.TextXAlignment = Enum.TextXAlignment.Left
- Border.Name = "Border"
- Border.Parent = Title
- Border.AnchorPoint = Vector2.new(0, 1)
- Border.BackgroundColor3 = Color3.new(0, 0, 0)
- Border.Position = UDim2.new(0, 0, 1.25, 0)
- Border.Size = UDim2.new(0.75, 0, 0.0500000007, 0)
- ESP.Name = "ESP"
- ESP.Parent = Frame
- ESP.AnchorPoint = Vector2.new(0, 0.100000001)
- ESP.BackgroundColor3 = Color3.new(1, 1, 1)
- ESP.BackgroundTransparency = 1
- ESP.Position = UDim2.new(0, 0, 0.100000001, 0)
- ESP.Size = UDim2.new(1, 0, 0.150000006, 0)
- ESP.Font = Enum.Font.SourceSansBold
- ESP.Text = "Press T to update ESP"
- ESP.TextColor3 = Color3.new(0.784314, 0.784314, 0.784314)
- ESP.TextScaled = true
- ESP.TextSize = 15
- ESP.TextStrokeTransparency = 0
- ESP.TextWrapped = true
- ESP.TextXAlignment = Enum.TextXAlignment.Left
- LoopESP.Name = "Loop ESP"
- LoopESP.Parent = Frame
- LoopESP.AnchorPoint = Vector2.new(0, 0.400000006)
- LoopESP.BackgroundColor3 = Color3.new(1, 1, 1)
- LoopESP.BackgroundTransparency = 1
- LoopESP.Position = UDim2.new(0, 0, 0.400000006, 0)
- LoopESP.Size = UDim2.new(1, 0, 0.150000006, 0)
- LoopESP.Font = Enum.Font.SourceSansBold
- LoopESP.Text = "Press L to enable loop ESP"
- LoopESP.TextColor3 = Color3.new(0.784314, 0.784314, 0.784314)
- LoopESP.TextScaled = true
- LoopESP.TextSize = 15
- LoopESP.TextStrokeTransparency = 0
- LoopESP.TextWrapped = true
- LoopESP.TextXAlignment = Enum.TextXAlignment.Left
- TeamBaseMode.Name = "Team Base Mode"
- TeamBaseMode.Parent = Frame
- TeamBaseMode.AnchorPoint = Vector2.new(0, 0.699999988)
- TeamBaseMode.BackgroundColor3 = Color3.new(1, 1, 1)
- TeamBaseMode.BackgroundTransparency = 1
- TeamBaseMode.Position = UDim2.new(0, 0, 0.699999988, 0)
- TeamBaseMode.Size = UDim2.new(1, 0, 0.150000006, 0)
- TeamBaseMode.Font = Enum.Font.SourceSansBold
- TeamBaseMode.Text = "Press O to change team base mode - false"
- TeamBaseMode.TextColor3 = Color3.new(0.784314, 0.784314, 0.784314)
- TeamBaseMode.TextScaled = true
- TeamBaseMode.TextSize = 15
- TeamBaseMode.TextStrokeTransparency = 0
- TeamBaseMode.TextWrapped = true
- TeamBaseMode.TextXAlignment = Enum.TextXAlignment.Left
- LockOnPlayer.Name = "Lock-On-Player"
- LockOnPlayer.Parent = Frame
- LockOnPlayer.AnchorPoint = Vector2.new(0, 1)
- LockOnPlayer.BackgroundColor3 = Color3.new(1, 1, 1)
- LockOnPlayer.BackgroundTransparency = 1
- LockOnPlayer.Position = UDim2.new(0, 0, 1, 0)
- LockOnPlayer.Size = UDim2.new(1, 0, 0.150000006, 0)
- LockOnPlayer.Font = Enum.Font.SourceSansBold
- LockOnPlayer.Text = "Press E to lock-on-a-player in your camera view"
- LockOnPlayer.TextColor3 = Color3.new(0.784314, 0.784314, 0.784314)
- LockOnPlayer.TextScaled = true
- LockOnPlayer.TextSize = 15
- LockOnPlayer.TextStrokeTransparency = 0
- LockOnPlayer.TextWrapped = true
- LockOnPlayer.TextXAlignment = Enum.TextXAlignment.Left
- --Main Functions:
- local plrsforaim = {}
- local lplr = plrs.LocalPlayer
- f = {}
- local espforlder
- f.addesp = function()
- print("ESP was just runned")
- if espforlder then
- wait()
- else
- espforlder = Instance.new("Folder")
- espforlder.Parent = game.Workspace.CurrentCamera
- end
- for i, v in pairs(espforlder:GetChildren()) do
- v:Destroy()
- end
- for _, plr in pairs(plrs:GetChildren()) do
- if plr.Character and plr.Character.Humanoid.Health > 0 and plr.Name ~= lplr.Name then
- if TeamBased == true then
- if plr.Team.Name ~= plrs.LocalPlayer.Team.Name then
- local e = espforlder:FindFirstChild(plr.Name)
- if not e then
- print("Added ESP for Team Based")
- local bill = Instance.new("BillboardGui", espforlder)
- bill.Name = plr.Name
- bill.AlwaysOnTop = true
- bill.Size = UDim2.new(1,0,1,0)
- bill.Adornee = plr.Character.Head
- local Frame = Instance.new('Frame',bill)
- Frame.Active = true
- Frame.BackgroundColor3 = Color3.new(0, 255, 127)
- Frame.BackgroundTransparency = 0
- Frame.BorderSizePixel = 0
- Frame.AnchorPoint = Vector2.new(.5, .5)
- Frame.Position = UDim2.new (0.5,0,0.5,0)
- Frame.Size = UDim2.new (1,0,1,0)
- Frame.Rotation = 0
- plr.Character.Humanoid.Died:Connect(function()
- bill:Destroy()
- end)
- end
- end
- else
- local e = espforlder:FindFirstChild(plr.Name)
- if not e then
- print("Added ESP")
- local bill = Instance.new("BillboardGui", espforlder)
- bill.Name = plr.Name
- bill.AlwaysOnTop = true
- bill.Size = UDim2.new(1,0,1,0)
- bill.Adornee = plr.Character.Head
- local Frame = Instance.new('Frame',bill)
- Frame.Active = true
- Frame.BackgroundColor3 = Color3.new(0, 255, 127)
- Frame.BackgroundTransparency = 0
- Frame.BorderSizePixel = 0
- Frame.AnchorPoint = Vector2.new(.5, .5)
- Frame.Position = UDim2.new (0.5,0,0.5,0)
- Frame.Size = UDim2.new (1,0,1,0)
- Frame.Rotation = 0
- plr.Character.Humanoid.Died:Connect(function()
- bill:Destroy()
- end)
- end
- end
- end
- end
- end
- local cam = game.Workspace.CurrentCamera
- local mouse = lplr:GetMouse()
- local switch = false
- local key = "k"
- local aimatpart = nil
- mouse.KeyDown:Connect(function(a)
- if a == "t" then
- print("worked1")
- f.addesp()
- elseif a == "u" then
- if raycast == true then
- raycast = false
- else
- raycast = true
- end
- elseif a == "l" then
- if autoesp == false then
- autoesp = true
- else
- autoesp = false
- end
- end
- if a == "j" then
- if mouse.Target then
- mouse.Target:Destroy()
- end
- end
- if a == key then
- if switch == false then
- switch = true
- else
- switch = false
- if aimatpart ~= nil then
- aimatpart = nil
- end
- end
- elseif a == teambasedswitch then
- if TeamBased == true then
- TeamBased = false
- TeamBaseMode.Text = "Press O to change team base mode - "..tostring(TeamBased)
- else
- TeamBased = true
- TeamBaseMode.Text = "Press O to change team base mode - "..tostring(TeamBased)
- end
- elseif a == aimkey then
- if not aimatpart then
- local maxangle = math.rad(20)
- for i, plr in pairs(plrs:GetChildren()) do
- if plr.Name ~= lplr.Name and plr.Character and plr.Character.Head and plr.Character.Humanoid and plr.Character.Humanoid.Health > 1 then
- if TeamBased == true then
- if plr.Team.Name ~= lplr.Team.Name then
- local an = checkfov(plr.Character.Head)
- if an < maxangle then
- maxangle = an
- aimatpart = plr.Character.Head
- end
- end
- else
- local an = checkfov(plr.Character.Head)
- if an < maxangle then
- maxangle = an
- aimatpart = plr.Character.Head
- end
- print(plr)
- end
- plr.Character.Humanoid.Died:Connect(function()
- if aimatpart.Parent == plr.Character or aimatpart == nil then
- aimatpart = nil
- end
- end)
- end
- end
- else
- aimatpart = nil
- end
- end
- end)
- function getfovxyz (p0, p1, deg)
- local x1, y1, z1 = p0:ToOrientation()
- local cf = CFrame.new(p0.p, p1.p)
- local x2, y2, z2 = cf:ToOrientation()
- if deg then
- wait()
- else
- return Vector3.new((x1-x2), (y1-y2), (z1-z2))
- end
- end
- function getaimbotplrs()
- plrsforaim = {}
- for i, plr in pairs(plrs:GetChildren()) do
- if plr.Character and plr.Character.Humanoid and plr.Character.Humanoid.Health > 0 and plr.Name ~= lplr.Name and plr.Character.Head then
- if TeamBased == true then
- if plr.Team.Name ~= lplr.Team.Name then
- local cf = CFrame.new(game.Workspace.CurrentCamera.CFrame.p, plr.Character.Head.CFrame.p)
- local r = Ray.new(cf, cf.LookVector * 10000)
- local ign = {}
- for i, v in pairs(plrs.LocalPlayer.Character:GetChildren()) do
- if v:IsA("BasePart") then
- table.insert(ign , v)
- end
- end
- local obj = game.Workspace:FindPartOnRayWithIgnoreList(r, ign)
- if obj.Parent == plr.Character and obj.Parent ~= lplr.Character then
- table.insert(plrsforaim, obj)
- end
- end
- else
- local cf = CFrame.new(game.Workspace.CurrentCamera.CFrame.p, plr.Character.Head.CFrame.p)
- local r = Ray.new(cf, cf.LookVector * 10000)
- local ign = {}
- for i, v in pairs(plrs.LocalPlayer.Character:GetChildren()) do
- if v:IsA("BasePart") then
- table.insert(ign , v)
- end
- end
- local obj = game.Workspace:FindPartOnRayWithIgnoreList(r, ign)
- if obj.Parent == plr.Character and obj.Parent ~= lplr.Character then
- table.insert(plrsforaim, obj)
- end
- end
- end
- end
- end
- function aimat(part)
- cam.CFrame = CFrame.new(cam.CFrame.p, part.CFrame.p)
- end
- function checkfov (part)
- local fov = getfovxyz(game.Workspace.CurrentCamera.CFrame, part.CFrame)
- local angle = math.abs(fov.X) + math.abs(fov.Y)
- return angle
- end
- game:GetService("RunService").RenderStepped:Connect(function()
- if aimatpart then
- aimat(aimatpart)
- if aimatpart.Parent == plrs.LocalPlayer.Character then
- aimatpart = nil
- end
- end
- if raycast == true and switch == false and not aimatpart then
- getaimbotplrs()
- aimatpart = nil
- local maxangle = 999
- for i, v in ipairs(plrsforaim) do
- if v.Parent ~= lplr.Character then
- local an = checkfov(v)
- if an < maxangle and v ~= lplr.Character.Head then
- maxangle = an
- aimatpart = v
- print(v:GetFullName())
- v.Parent.Humanoid.Died:connect(function()
- aimatpart = nil
- end)
- end
- end
- end
- end
- end)
- delay(0, function()
- while wait(espupdatetime) do
- if autoesp == true then
- pcall(function()
- f.addesp()
- end)
- end
- end
- end)
- warn("Arsenal Hack...LOADED!")
Add Comment
Please, Sign In to add comment