local a=game:GetService("Players")local b=game:GetService("UserInputService")local c=game:GetService("RunService")local d=a.LocalPlayer;local e=workspace.CurrentCamera;local f={ESP=false,ESPNames=true,ESPHighlights=true,FillTransparency=0.5,Lock=false,LockKey=Enum.KeyCode.Q,LockRange=500,MaxFOV=250,DrawFOV=true,DynamicFOV=false,TeamCheck=false,VisibleCheck=false,TargetPart="Head",SilentAim=false,Triggerbot=false,Rage=false,TriggerDelay=0.15,RageDelay=0.1}local g={}local h=nil;local i=false;local j=0;local k=0;local l={Background=Color3.fromRGB(24,25,27),Panel=Color3.fromRGB(29,30,32),Button=Color3.fromRGB(37,38,40),Selected=Color3.fromRGB(47,48,51),Blue=Color3.fromRGB(48,157,195),White=Color3.fromRGB(225,225,225),Grey=Color3.fromRGB(145,145,145)}local function m(n,o,p)local q=Instance.new(n)for r,s in pairs(o)do q[r]=s end;q.Parent=p;return q end;local t=m("ScreenGui",{Name="HumanoidESP",ResetOnSpawn=false,ZIndexBehavior=Enum.ZIndexBehavior.Sibling},d:WaitForChild("PlayerGui"))local u=m("Frame",{Size=UDim2.fromOffset(590,470),Position=UDim2.new(0.5,-295,0.5,-235),BackgroundColor3=l.Background,BorderColor3=Color3.fromRGB(5,5,5),BorderSizePixel=1},t)local v=false;local w;local x;local y=m("Frame",{Size=UDim2.new(1,0,0,30),BackgroundTransparency=1},u)y.InputBegan:Connect(function(z)if z.UserInputType==Enum.UserInputType.MouseButton1 then v=true;w=z.Position;x=u.Position end end)b.InputChanged:Connect(function(z)if v and z.UserInputType==Enum.UserInputType.MouseMovement then local A=z.Position-w;u.Position=UDim2.new(x.X.Scale,x.X.Offset+A.X,x.Y.Scale,x.Y.Offset+A.Y)end end)b.InputEnded:Connect(function(z)if z.UserInputType==Enum.UserInputType.MouseButton1 then v=false end end)local function B(p,C,D,E)return m("TextLabel",{Position=D,Size=E,BackgroundTransparency=1,Text=C,TextColor3=l.White,Font=Enum.Font.SourceSans,TextSize=16,TextXAlignment=Enum.TextXAlignment.Left},p)end;local function F(p,C,D,E)local G=m("TextButton",{Position=D,Size=E,BackgroundColor3=l.Button,BorderColor3=Color3.fromRGB(65,65,65),Text=C,TextColor3=l.White,Font=Enum.Font.SourceSans,TextSize=16,AutoButtonColor=false},p)G.MouseEnter:Connect(function()G.BackgroundColor3=l.Selected end)G.MouseLeave:Connect(function()G.BackgroundColor3=l.Button end)return G end;local function H(p,C,I)local J=m("Frame",{Position=UDim2.fromOffset(I,0),Size=UDim2.fromOffset(275,355),BackgroundColor3=l.Panel,BorderColor3=Color3.fromRGB(65,65,65)},p)B(J,C,UDim2.fromOffset(7,2),UDim2.fromOffset(260,24)).TextColor3=l.Blue;m("Frame",{Position=UDim2.fromOffset(5,27),Size=UDim2.new(1,-10,0,2),BackgroundColor3=l.Blue,BorderSizePixel=0},J)return J end;B(u,"HUMANOID ESP",UDim2.fromOffset(10,0),UDim2.fromOffset(250,30)).Font=Enum.Font.SourceSansBold;local K={"Combat","Visuals","Misc","Settings"}local L={}local M={}local N=m("Frame",{Position=UDim2.fromOffset(8,32),Size=UDim2.new(1,-16,0,30),BackgroundTransparency=1},u)local function O(P)local Q=m("Frame",{Position=UDim2.fromOffset(8,102),Size=UDim2.new(1,-16,1,-110),BackgroundTransparency=1,Visible=false},u)M[P]=Q;return Q end;local function R(P)for S,Q in pairs(M)do Q.Visible=S==P end;for S,G in pairs(L)do G.BackgroundColor3=S==P and l.Selected or l.Button end end;for T,P in ipairs(K)do local G=F(N,P,UDim2.new((T-1)*0.25,2,0,0),UDim2.new(0.25,-5,1,0))L[P]=G;G.MouseButton1Click:Connect(function()R(P)end)end;local U=O("Combat")local V=O("Visuals")local W=O("Misc")local X=O("Settings")local Y={"Legitbot","Silent Aim","Triggerbot","Rage"}local Z=m("Frame",{Size=UDim2.new(1,0,0,28),BackgroundTransparency=1},U)local _={}local a0={}local function a1(P)for a2,Q in pairs(_)do Q.Visible=a2==P end;for a2,G in pairs(a0)do G.BackgroundColor3=a2==P and l.Selected or l.Button end end;for T,P in ipairs(Y)do local G=F(Z,P,UDim2.new((T-1)*0.25,2,0,0),UDim2.new(0.25,-5,1,0))a0[P]=G;local Q=m("Frame",{Position=UDim2.fromOffset(0,34),Size=UDim2.new(1,0,1,-34),BackgroundTransparency=1,Visible=false},U)_[P]=Q;G.MouseButton1Click:Connect(function()a1(P)end)end;local function a3(p,C,a4,a5,a6)local G=m("TextButton",{Position=UDim2.fromOffset(7,a4),Size=UDim2.fromOffset(255,23),BackgroundTransparency=1,Text="",AutoButtonColor=false},p)local a7=m("Frame",{Position=UDim2.fromOffset(0,3),Size=UDim2.fromOffset(16,16),BackgroundColor3=Color3.fromRGB(35,36,38),BorderColor3=Color3.fromRGB(80,80,80)},G)local a8=m("Frame",{Position=UDim2.fromOffset(2,2),Size=UDim2.new(1,-4,1,-4),BackgroundColor3=l.Blue,BorderSizePixel=0,Visible=f[a5]},a7)B(G,C,UDim2.fromOffset(22,0),UDim2.fromOffset(230,23))G.MouseButton1Click:Connect(function()f[a5]=not f[a5]a8.Visible=f[a5]if a6 then a6(f[a5])end end)return G end;local function a9(p,C,a4,aa,ab,a5)local ac=m("Frame",{Position=UDim2.fromOffset(7,a4),Size=UDim2.fromOffset(255,43),BackgroundTransparency=1},p)B(ac,C,UDim2.fromOffset(0,0),UDim2.fromOffset(190,20))local ad=B(ac,tostring(f[a5]),UDim2.new(1,-55,0,0),UDim2.fromOffset(55,20))ad.TextXAlignment=Enum.TextXAlignment.Right;local ae=m("Frame",{Position=UDim2.fromOffset(0,23),Size=UDim2.fromOffset(255,12),BackgroundColor3=Color3.fromRGB(48,49,51),BorderSizePixel=0},ac)local af=m("Frame",{Size=UDim2.new(math.clamp((f[a5]-aa)/(ab-aa),0,1),0,1,0),BackgroundColor3=l.Blue,BorderSizePixel=0},ae)local ag=false;local function ah(z)local ai=math.clamp((z.Position.X-ae.AbsolutePosition.X)/ae.AbsoluteSize.X,0,1)local s=aa+(ab-aa)*ai;f[a5]=s;ad.Text=tostring(math.floor(s*100)/100)af.Size=UDim2.new(ai,0,1,0)end;ae.InputBegan:Connect(function(z)if z.UserInputType==Enum.UserInputType.MouseButton1 then ag=true;ah(z)end end)b.InputChanged:Connect(function(z)if ag and z.UserInputType==Enum.UserInputType.MouseMovement then ah(z)end end)b.InputEnded:Connect(function(z)if z.UserInputType==Enum.UserInputType.MouseButton1 then ag=false end end)return ac end;local function aj(p,C,a4,ak,a5)B(p,C,UDim2.fromOffset(7,a4),UDim2.fromOffset(250,20))local G=F(p,f[a5],UDim2.fromOffset(7,a4+21),UDim2.fromOffset(255,26))local al=table.find(ak,f[a5])or 1;G.MouseButton1Click:Connect(function()al=al%#ak+1;f[a5]=ak[al]G.Text=ak[al]end)return G end;local function am(an)local J=a:GetPlayerFromCharacter(an)return J and J.Name or an.Name end;local function ao(an)local ap=g[an]if not ap then return end;if ap.Highlight then ap.Highlight:Destroy()end;if ap.Billboard then ap.Billboard:Destroy()end;g[an]=nil end;local function aq(an)if not f.ESP then return end;if not an or not an:IsA("Model")then return end;if an==d.Character then return end;if g[an]then return end;local ar=an:FindFirstChildOfClass("Humanoid")if not ar or ar.Health<=0 then return end;local ap={}if f.ESPHighlights then local as=Instance.new("Highlight")as.Name="HumanoidESPHighlight"as.Adornee=an;as.FillColor=Color3.fromRGB(255,0,0)as.OutlineColor=Color3.fromRGB(255,255,255)as.FillTransparency=f.FillTransparency;as.DepthMode=Enum.HighlightDepthMode.AlwaysOnTop;as.Parent=an;ap.Highlight=as end;if f.ESPNames then local at=an:FindFirstChild("Head")or an:FindFirstChild("HumanoidRootPart")or an.PrimaryPart or an:FindFirstChildWhichIsA("BasePart")if at then local au=Instance.new("BillboardGui")au.Name="HumanoidESPName"au.Size=UDim2.fromOffset(180,30)au.StudsOffset=Vector3.new(0,3,0)au.AlwaysOnTop=true;au.Adornee=at;au.Parent=an;local P=Instance.new("TextLabel")P.Size=UDim2.fromScale(1,1)P.BackgroundTransparency=1;P.Text=am(an)P.TextColor3=Color3.new(1,1,1)P.TextStrokeTransparency=0;P.Font=Enum.Font.GothamBold;P.TextSize=14;P.Parent=au;ap.Billboard=au end end;g[an]=ap;ar.Died:Connect(function()ao(an)end)end;local function av()for an in pairs(g)do ao(an)end;if not f.ESP then return end;for aw,q in ipairs(workspace:GetDescendants())do if q:IsA("Humanoid")then aq(q.Parent)end end end;workspace.DescendantAdded:Connect(function(q)if q:IsA("Humanoid")then task.defer(function()if f.ESP then aq(q.Parent)end end)end end)workspace.DescendantRemoving:Connect(function(q)if q:IsA("Model")then ao(q)end end)local function ax(an)if not an or not an:IsA("Model")then return false end;if an==d.Character then return false end;local ar=an:FindFirstChildOfClass("Humanoid")if not ar or ar.Health<=0 then return false end;local ay=a:GetPlayerFromCharacter(an)if f.TeamCheck and ay then if d.Team==ay.Team then return false end end;return true end;local function az(an,at)if not f.VisibleCheck then return true end;local aA=d.Character;if not aA then return false end;local aB=RaycastParams.new()aB.FilterType=Enum.RaycastFilterType.Exclude;aB.FilterDescendantsInstances={aA}local aC=e.CFrame.Position;local aD=at.Position-aC;local aE=workspace:Raycast(aC,aD,aB)return aE~=nil and aE.Instance:IsDescendantOf(an)end;local function aF()local aG=nil;local aH=math.huge;local aI=e.ViewportSize/2;for aw,q in ipairs(workspace:GetDescendants())do if q:IsA("Humanoid")then local an=q.Parent;if ax(an)then local at=an:FindFirstChild(f.TargetPart)or an:FindFirstChild("HumanoidRootPart")local aJ=an:FindFirstChild("HumanoidRootPart")if at and aJ then local D,aK=e:WorldToViewportPoint(at.Position)if aK and D.Z>0 then local aL=(Vector2.new(D.X,D.Y)-aI).Magnitude;local aM=d.Character;local aN=aM and aM:FindFirstChild("HumanoidRootPart")local aO=aN and(aN.Position-aJ.Position).Magnitude or math.huge;if aL<=f.MaxFOV and aO<=f.LockRange and aL=0.5 then bb=os.clock()for an,ap in pairs(g)do if not an.Parent then ao(an)elseif ap.Highlight then ap.Highlight.FillTransparency=f.FillTransparency end end end;if f.Triggerbot then if os.clock()-j>=f.TriggerDelay then local an=aP()if an then j=os.clock()aR()end end end;if f.Rage then local an=nil;for aw,q in ipairs(workspace:GetDescendants())do if q:IsA("Humanoid")then local bc=q.Parent;if bc and not a:GetPlayerFromCharacter(bc)and ax(bc)then an=bc;break end end end;if an then local at=an:FindFirstChild(f.TargetPart)if at then e.CFrame=CFrame.lookAt(e.CFrame.Position,at.Position)if os.clock()-k>=f.RageDelay then k=os.clock()aR()end end end;return end;if not f.Lock or not h then return end;local ar=h:FindFirstChildOfClass("Humanoid")local at=h:FindFirstChild(f.TargetPart)or h:FindFirstChild("HumanoidRootPart")if not ax(h)or not ar or ar.Health<=0 or not at or not az(h,at)then f.Lock=false;h=nil;return end;e.CFrame=CFrame.lookAt(e.CFrame.Position,at.Position)end)R("Combat")a1("Legitbot")print("Humanoid ESP GUI successfully loaded!")