for _,n in ipairs({"ESP_Menu","ESP_Gui","AIM_FOV_CIRCLE"})do local o=game:GetService("CoreGui"):FindFirstChild(n)if o then o:Destroy()end end _G.ESPConns=_G.ESPConns or{}for _,c in ipairs(_G.ESPConns)do pcall(function()c:Disconnect()end)end _G.ESPConns={}local Players=game:GetService("Players")local UserInputService=game:GetService("UserInputService")local RunService=game:GetService("RunService")local TweenService=game:GetService("TweenService")local CoreGui=game:GetService("CoreGui")local LocalPlayer=Players.LocalPlayer local Camera=workspace.CurrentCamera local function conn(c)table.insert(_G.ESPConns,c)return c end _G.MenuKey=_G.MenuKey or{type="keyboard",key=Enum.KeyCode.Insert}local function getPlayerTeam(player)local team=player.Team if team then return team.Name end local ls=player:FindFirstChild("leaderstats")if ls then local ts=ls:FindFirstChild("Team")if ts then return tostring(ts.Value)end end local attr=player:GetAttribute("Team")if attr then return attr end return nil end local function isEnemy(player)if not player or player==LocalPlayer then return false end local myTeam=getPlayerTeam(LocalPlayer)local theirTeam=getPlayerTeam(player)if not myTeam or not theirTeam then return true end return myTeam~=theirTeam end local ScreenGui=Instance.new("ScreenGui")ScreenGui.Name="ESP_Menu"ScreenGui.ResetOnSpawn=false ScreenGui.ZIndexBehavior=Enum.ZIndexBehavior.Sibling ScreenGui.DisplayOrder=2147483647 ScreenGui.IgnoreGuiInset=true ScreenGui.Parent=CoreGui local ESPGui=Instance.new("ScreenGui")ESPGui.Name="ESP_Gui"ESPGui.ResetOnSpawn=false ESPGui.ZIndexBehavior=Enum.ZIndexBehavior.Sibling ESPGui.DisplayOrder=2147483644 ESPGui.Parent=CoreGui local Main=Instance.new("Frame")Main.Name="Main"Main.Size=UDim2.new(0,580,0,440)Main.Position=UDim2.new(0.5,-290,0.5,-220)Main.BackgroundColor3=Color3.fromRGB(10,10,10)Main.BorderSizePixel=0 Main.Visible=true Main.Parent=ScreenGui Instance.new("UICorner",Main).CornerRadius=UDim.new(0,12)local SideBar=Instance.new("Frame")SideBar.Size=UDim2.new(0,180,1,0)SideBar.BackgroundColor3=Color3.fromRGB(15,15,15)SideBar.BorderSizePixel=0 SideBar.Parent=Main Instance.new("UICorner",SideBar).CornerRadius=UDim.new(0,12)local TitleLbl=Instance.new("TextLabel")TitleLbl.Size=UDim2.new(1,0,0,55)TitleLbl.BackgroundTransparency=1 TitleLbl.Text="Menu"TitleLbl.TextColor3=Color3.fromRGB(255,255,255)TitleLbl.TextSize=16 TitleLbl.Font=Enum.Font.GothamBold TitleLbl.Parent=SideBar local TabContainer=Instance.new("Frame")TabContainer.Position=UDim2.new(0,10,0,55)TabContainer.Size=UDim2.new(1,-20,1,-65)TabContainer.BackgroundTransparency=1 TabContainer.Parent=SideBar local tabLL=Instance.new("UIListLayout",TabContainer)tabLL.Padding=UDim.new(0,4)local PageContainer=Instance.new("Frame")PageContainer.Position=UDim2.new(0,190,0,50)PageContainer.Size=UDim2.new(1,-200,1,-60)PageContainer.BackgroundTransparency=1 PageContainer.Parent=Main local function makeCtrlBtn(xOff,col,txt)local b=Instance.new("TextButton")b.Size=UDim2.new(0,22,0,22)b.Position=UDim2.new(1,xOff,0,8)b.BackgroundColor3=col b.Text=txt b.TextColor3=Color3.fromRGB(255,255,255)b.TextSize=16 b.Font=Enum.Font.GothamBold b.Parent=Main Instance.new("UICorner",b).CornerRadius=UDim.new(1,0)return b end local CloseBtn=makeCtrlBtn(-28,Color3.fromRGB(150,40,40),"×")local HideBtn=makeCtrlBtn(-54,Color3.fromRGB(40,40,40),"−")local dragging,dragStart,startPos Main.InputBegan:Connect(function(i)if i.UserInputType==Enum.UserInputType.MouseButton1 then dragging=true dragStart=i.Position startPos=Main.Position end end)UserInputService.InputChanged:Connect(function(i)if dragging and i.UserInputType==Enum.UserInputType.MouseMovement then local d=i.Position-dragStart Main.Position=UDim2.new(startPos.X.Scale,startPos.X.Offset+d.X,startPos.Y.Scale,startPos.Y.Offset+d.Y)end end)UserInputService.InputEnded:Connect(function(i)if i.UserInputType==Enum.UserInputType.MouseButton1 then dragging=false end end)local Pages={}local function CreatePage(name)local Page=Instance.new("ScrollingFrame")Page.Size=UDim2.new(1,0,1,0)Page.BackgroundTransparency=1 Page.Visible=false Page.ScrollBarThickness=3 Page.ScrollBarImageColor3=Color3.fromRGB(100,0,255)Page.AutomaticCanvasSize=Enum.AutomaticSize.Y Page.CanvasSize=UDim2.new(0,0,0,0)Page.Parent=PageContainer local lay=Instance.new("UIListLayout",Page)lay.Padding=UDim.new(0,7)lay.SortOrder=Enum.SortOrder.LayoutOrder local pad=Instance.new("UIPadding",Page)pad.PaddingTop=UDim.new(0,4)pad.PaddingBottom=UDim.new(0,4)pad.PaddingLeft=UDim.new(0,4)pad.PaddingRight=UDim.new(0,4)local TabBtn=Instance.new("TextButton")TabBtn.Size=UDim2.new(1,0,0,32)TabBtn.BackgroundTransparency=1 TabBtn.Text=name TabBtn.TextColor3=Color3.fromRGB(120,120,120)TabBtn.TextSize=13 TabBtn.Font=Enum.Font.Gotham TabBtn.Name=name TabBtn.Parent=TabContainer Instance.new("UICorner",TabBtn).CornerRadius=UDim.new(0,6)TabBtn.MouseEnter:Connect(function()if not Page.Visible then TweenService:Create(TabBtn,TweenInfo.new(0.2),{BackgroundTransparency=0.9}):Play()end end)TabBtn.MouseLeave:Connect(function()if not Page.Visible then TweenService:Create(TabBtn,TweenInfo.new(0.2),{BackgroundTransparency=1}):Play()end end)TabBtn.MouseButton1Click:Connect(function()for n,p in pairs(Pages)do p.Visible=false local b=TabContainer:FindFirstChild(n)if b then TweenService:Create(b,TweenInfo.new(0.2),{BackgroundTransparency=1,TextColor3=Color3.fromRGB(120,120,120)}):Play()end end Page.Visible=true TweenService:Create(TabBtn,TweenInfo.new(0.2),{BackgroundTransparency=0.8,TextColor3=Color3.fromRGB(255,255,255)}):Play()end)Pages[name]=Page return Page end local VisualsPage=CreatePage("Visuals")local AimbotPage=CreatePage("Aimbot")local SettingsPage=CreatePage("Settings")VisualsPage.Visible=true TabContainer.Visuals.TextColor3=Color3.fromRGB(255,255,255)TabContainer.Visuals.BackgroundTransparency=0.8 local listeningKey=false conn(UserInputService.InputBegan:Connect(function(i)if listeningKey then return end local mk=_G.MenuKey local hit=(mk.type=="keyboard"and i.KeyCode==mk.key)or(mk.type=="mouse"and i.UserInputType==mk.key)if hit then Main.Visible=not Main.Visible end end))local uiSetters={}local function AddSep(parent,text)local L=Instance.new("TextLabel")L.Size=UDim2.new(1,0,0,20)L.BackgroundTransparency=1 L.Text=text or"───────────"L.TextColor3=Color3.fromRGB(100,0,255)L.TextSize=11 L.Font=Enum.Font.GothamBold L.Parent=parent end local function AddToggle(parent,text,default,callback)local TF=Instance.new("Frame")TF.Size=UDim2.new(1,0,0,40)TF.BackgroundColor3=Color3.fromRGB(20,20,20)TF.Parent=parent Instance.new("UICorner",TF).CornerRadius=UDim.new(0,6)local L=Instance.new("TextLabel")L.Size=UDim2.new(1,-50,1,0)L.Position=UDim2.new(0,12,0,0)L.BackgroundTransparency=1 L.Text=text L.TextColor3=Color3.fromRGB(180,180,180)L.TextSize=13 L.Font=Enum.Font.Gotham L.TextXAlignment=Enum.TextXAlignment.Left L.Parent=TF local Btn=Instance.new("TextButton")Btn.Size=UDim2.new(0,34,0,18)Btn.Position=UDim2.new(1,-44,0.5,-9)Btn.Text=""Btn.BackgroundColor3=Color3.fromRGB(40,40,40)Btn.Parent=TF Instance.new("UICorner",Btn).CornerRadius=UDim.new(1,0)local Ind=Instance.new("Frame")Ind.Size=UDim2.new(0,14,0,14)Ind.BackgroundColor3=Color3.fromRGB(255,255,255)Ind.Parent=Btn Instance.new("UICorner",Ind).CornerRadius=UDim.new(1,0)local state=default or false local function applyState(v,animate)state=v local dur=animate and 0.2 or 0 TweenService:Create(Ind,TweenInfo.new(dur),{Position=v and UDim2.new(1,-16,0.5,-7)or UDim2.new(0,2,0.5,-7)}):Play()TweenService:Create(Btn,TweenInfo.new(dur),{BackgroundColor3=v and Color3.fromRGB(100,0,255)or Color3.fromRGB(40,40,40)}):Play()end applyState(state,false)Btn.MouseButton1Click:Connect(function()applyState(not state,true)callback(state)end)local function setVal(v)applyState(v,true)callback(v)end uiSetters[text]=setVal return setVal end local function AddSlider(parent,text,min,max,default,callback,isInt)local SF=Instance.new("Frame")SF.Size=UDim2.new(1,0,0,55)SF.BackgroundColor3=Color3.fromRGB(20,20,20)SF.Parent=parent Instance.new("UICorner",SF).CornerRadius=UDim.new(0,6)local val=default local L=Instance.new("TextLabel")L.Size=UDim2.new(1,0,0,25)L.Position=UDim2.new(0,12,0,5)L.BackgroundTransparency=1 L.Text=text..": "..val L.TextColor3=Color3.fromRGB(180,180,180)L.TextSize=13 L.Font=Enum.Font.Gotham L.TextXAlignment=Enum.TextXAlignment.Left L.Parent=SF local Bar=Instance.new("Frame")Bar.Size=UDim2.new(1,-24,0,4)Bar.Position=UDim2.new(0,12,0,40)Bar.BackgroundColor3=Color3.fromRGB(40,40,40)Bar.Parent=SF Instance.new("UICorner",Bar)local r=(val-min)/(max-min)local Fill=Instance.new("Frame")Fill.Size=UDim2.new(r,0,1,0)Fill.BackgroundColor3=Color3.fromRGB(100,0,255)Fill.Parent=Bar Instance.new("UICorner",Fill)local Knob=Instance.new("TextButton")Knob.Size=UDim2.new(0,10,0,10)Knob.Position=UDim2.new(r,-5,0.5,-5)Knob.BackgroundColor3=Color3.fromRGB(255,255,255)Knob.Text=""Knob.Parent=Bar Instance.new("UICorner",Knob)local dragg=false Knob.InputBegan:Connect(function(i)if i.UserInputType==Enum.UserInputType.MouseButton1 then dragg=true end end)conn(UserInputService.InputEnded:Connect(function(i)if i.UserInputType==Enum.UserInputType.MouseButton1 then dragg=false end end))conn(UserInputService.InputChanged:Connect(function(i)if not dragg or i.UserInputType~=Enum.UserInputType.MouseMovement then return end local pos=math.clamp((i.Position.X-Bar.AbsolutePosition.X)/Bar.AbsoluteSize.X,0,1)Fill.Size=UDim2.new(pos,0,1,0)Knob.Position=UDim2.new(pos,-5,0.5,-5)local v=min+(max-min)*pos if isInt then v=math.floor(v)else v=math.floor(v*100)/100 end L.Text=text..": "..v val=v callback(v)end))local function setVal(nv)nv=math.clamp(nv,min,max)if isInt then nv=math.floor(nv)end val=nv local ratio=(nv-min)/(max-min)Fill.Size=UDim2.new(ratio,0,1,0)Knob.Position=UDim2.new(ratio,-5,0.5,-5)L.Text=text..": "..nv callback(nv)end uiSetters[text]=setVal return setVal end local function AddDropdown(parent,text,options,default,callback)local wrap=Instance.new("Frame")wrap.Size=UDim2.new(1,0,0,40)wrap.BackgroundColor3=Color3.fromRGB(20,20,20)wrap.Parent=parent Instance.new("UICorner",wrap).CornerRadius=UDim.new(0,6)local L=Instance.new("TextLabel")L.Size=UDim2.new(0.55,0,1,0)L.Position=UDim2.new(0,12,0,0)L.BackgroundTransparency=1 L.Text=text L.TextColor3=Color3.fromRGB(180,180,180)L.TextSize=13 L.Font=Enum.Font.Gotham L.TextXAlignment=Enum.TextXAlignment.Left L.Parent=wrap local Sel=Instance.new("TextButton")Sel.Size=UDim2.new(0.38,0,0,26)Sel.Position=UDim2.new(0.59,0,0.5,-13)Sel.BackgroundColor3=Color3.fromRGB(35,35,35)Sel.Text=default Sel.TextColor3=Color3.fromRGB(200,200,200)Sel.TextSize=12 Sel.Font=Enum.Font.Gotham Sel.Parent=wrap Instance.new("UICorner",Sel).CornerRadius=UDim.new(0,5)local idx=1 for i,v in ipairs(options)do if v==default then idx=i end end Sel.MouseButton1Click:Connect(function()idx=idx%#options+1 Sel.Text=options[idx]callback(options[idx])end)return Sel end local function AddSection(parent,title,buildFn)local wrap=Instance.new("Frame")wrap.Size=UDim2.new(1,0,0,40)wrap.BackgroundTransparency=1 wrap.ClipsDescendants=false wrap.Parent=parent local wl=Instance.new("UIListLayout",wrap)wl.SortOrder=Enum.SortOrder.LayoutOrder wl.Padding=UDim.new(0,0)local Header=Instance.new("Frame")Header.Size=UDim2.new(1,0,0,40)Header.BackgroundColor3=Color3.fromRGB(20,20,20)Header.LayoutOrder=1 Header.Parent=wrap Instance.new("UICorner",Header).CornerRadius=UDim.new(0,6)local Arrow=Instance.new("TextButton")Arrow.Size=UDim2.new(0,26,0,26)Arrow.Position=UDim2.new(0,6,0.5,-13)Arrow.BackgroundColor3=Color3.fromRGB(35,35,35)Arrow.Text="▶"Arrow.TextColor3=Color3.fromRGB(160,160,160)Arrow.TextSize=11 Arrow.Font=Enum.Font.GothamBold Arrow.Parent=Header Instance.new("UICorner",Arrow).CornerRadius=UDim.new(0,5)local TL=Instance.new("TextLabel")TL.Size=UDim2.new(1,-50,1,0)TL.Position=UDim2.new(0,40,0,0)TL.BackgroundTransparency=1 TL.Text=title TL.TextColor3=Color3.fromRGB(180,180,180)TL.TextSize=13 TL.Font=Enum.Font.Gotham TL.TextXAlignment=Enum.TextXAlignment.Left TL.Parent=Header local Panel=Instance.new("Frame")Panel.Size=UDim2.new(1,0,0,0)Panel.BackgroundColor3=Color3.fromRGB(15,15,15)Panel.ClipsDescendants=true Panel.LayoutOrder=2 Panel.Visible=false Panel.Parent=wrap Instance.new("UICorner",Panel).CornerRadius=UDim.new(0,6)local pl=Instance.new("UIListLayout",Panel)pl.Padding=UDim.new(0,5)pl.SortOrder=Enum.SortOrder.LayoutOrder local pp=Instance.new("UIPadding",Panel)pp.PaddingTop=UDim.new(0,8)pp.PaddingBottom=UDim.new(0,8)pp.PaddingLeft=UDim.new(0,8)pp.PaddingRight=UDim.new(0,8)buildFn(Panel)local function getH()local h=16 for _,ch in ipairs(Panel:GetChildren())do if ch:IsA("GuiObject")then h=h+ch.Size.Y.Offset+5 end end return h end local isOpen=false Arrow.MouseButton1Click:Connect(function()isOpen=not isOpen Arrow.Text=isOpen and"▼"or"▶"Panel.Visible=true local th=isOpen and getH()or 0 TweenService:Create(Panel,TweenInfo.new(0.25),{Size=UDim2.new(1,0,0,th)}):Play()wrap.Size=UDim2.new(1,0,0,isOpen and(40+th+4)or 40)if not isOpen then task.delay(0.26,function()if not isOpen then Panel.Visible=false end end)end end)end local espEnabled=false local espShowName=true local espShowDist=true local espColorR=255 local espColorG=60 local espColorB=60 local function getESPColor()return Color3.fromRGB(espColorR,espColorG,espColorB)end local espTracers=false local espTracerOrigin="Bottom"local espTeamCheck=true local aimbotEnabled=false local aimbotFOV=120 local aimbotFOVVisible=true local aimbotOnlyVisible=false local aimbotSmartAim=true local aimbotTeamCheck=true local highlights={}local isAimHolding=false local screenGui_fov=nil local circleFrame_fov=nil local tracerDrawings={}local function removeHighlight(player)local d=highlights[player]if not d then return end pcall(function()d.highlight:Destroy()end)pcall(function()d.billboard:Destroy()end)pcall(function()d.connection:Disconnect()end)highlights[player]=nil end local function createHighlight(player)if highlights[player]then return end if player==LocalPlayer then return end local hl=Instance.new("Highlight")hl.FillTransparency=0.65 hl.OutlineTransparency=0.25 hl.DepthMode=Enum.HighlightDepthMode.AlwaysOnTop hl.FillColor=getESPColor()hl.OutlineColor=getESPColor()hl.Parent=ESPGui local bb=Instance.new("BillboardGui")bb.Size=UDim2.new(0,140,0,34)bb.StudsOffset=Vector3.new(0,3,0)bb.AlwaysOnTop=true bb.Parent=ESPGui local nLbl=Instance.new("TextLabel")nLbl.Size=UDim2.new(1,0,0.5,0)nLbl.BackgroundTransparency=1 nLbl.Text=player.Name nLbl.TextColor3=getESPColor()nLbl.TextStrokeTransparency=0 nLbl.TextStrokeColor3=Color3.fromRGB(0,0,0)nLbl.TextScaled=true nLbl.Font=Enum.Font.GothamBold nLbl.Visible=espShowName nLbl.Parent=bb local dLbl=Instance.new("TextLabel")dLbl.Size=UDim2.new(1,0,0.5,0)dLbl.Position=UDim2.new(0,0,0.5,0)dLbl.BackgroundTransparency=1 dLbl.Text=""dLbl.TextColor3=Color3.fromRGB(255,255,255)dLbl.TextStrokeTransparency=0.3 dLbl.TextScaled=true dLbl.Font=Enum.Font.Gotham dLbl.Visible=espShowDist dLbl.Parent=bb local function updateAdornee()if player.Character and player.Character:FindFirstChild("HumanoidRootPart")then hl.Adornee=player.Character bb.Adornee=player.Character.HumanoidRootPart else hl.Adornee=nil bb.Adornee=nil end end updateAdornee()local c=player.CharacterAdded:Connect(function()task.wait(0.1)updateAdornee()end)highlights[player]={highlight=hl,billboard=bb,nameLbl=nLbl,distLbl=dLbl,connection=c}end local function refreshESPColor()local col=getESPColor()for _,d in pairs(highlights)do if d.highlight then d.highlight.FillColor=col d.highlight.OutlineColor=col end if d.nameLbl then d.nameLbl.TextColor3=col end end end local function shouldESP(pl)if pl==LocalPlayer or not pl.Parent then return false end if espTeamCheck then return isEnemy(pl)end return true end local function updateESP()if not espEnabled then for pl in pairs(highlights)do removeHighlight(pl)end return end for _,pl in ipairs(Players:GetPlayers())do if shouldESP(pl)then if not highlights[pl]then createHighlight(pl)end else if highlights[pl]then removeHighlight(pl)end end task.wait(0.02)end for pl in pairs(highlights)do if not shouldESP(pl)then removeHighlight(pl)end end end conn(Players.PlayerRemoving:Connect(removeHighlight))task.spawn(function()while true do task.wait(0.2)if not espEnabled then continue end local myChar=LocalPlayer.Character local myRoot=myChar and myChar:FindFirstChild("HumanoidRootPart")if not myRoot then continue end for pl,d in pairs(highlights)do if pl.Character then local root=pl.Character:FindFirstChild("HumanoidRootPart")if root then d.distLbl.Text=math.floor((myRoot.Position-root.Position).Magnitude).." studs"d.distLbl.Visible=espShowDist d.nameLbl.Visible=espShowName end end end end end)task.spawn(function()while true do updateESP()task.wait(2)end end)local function clearTracers()for _,line in ipairs(tracerDrawings)do pcall(function()line:Remove()end)end tracerDrawings={}end conn(RunService.RenderStepped:Connect(function()clearTracers()if not espTracers or not espEnabled then return end local vp=Camera.ViewportSize local orig if espTracerOrigin=="Center"then orig=Vector2.new(vp.X/2,vp.Y/2)elseif espTracerOrigin=="Bottom"then orig=Vector2.new(vp.X/2,vp.Y)else orig=Vector2.new(vp.X/2,0)end local col=getESPColor()for _,pl in ipairs(Players:GetPlayers())do if pl==LocalPlayer then continue end if espTeamCheck and not isEnemy(pl)then continue end if pl.Character then local root=pl.Character:FindFirstChild("HumanoidRootPart")if root then local sp,on=Camera:WorldToScreenPoint(root.Position)if on then local line=Drawing.new("Line")line.From=orig line.To=Vector2.new(sp.X,sp.Y)line.Color=col line.Thickness=1.5 line.Transparency=0.3 line.Visible=true table.insert(tracerDrawings,line)end end end end end))local function destroyFOVCircle()if screenGui_fov and screenGui_fov.Parent then screenGui_fov:Destroy()end screenGui_fov=nil circleFrame_fov=nil local old=CoreGui:FindFirstChild("AIM_FOV_CIRCLE")if old then old:Destroy()end end local function createFOVCircle()destroyFOVCircle()if not aimbotFOVVisible then return end screenGui_fov=Instance.new("ScreenGui")screenGui_fov.Name="AIM_FOV_CIRCLE"screenGui_fov.ResetOnSpawn=false screenGui_fov.IgnoreGuiInset=true screenGui_fov.DisplayOrder=2147483643 screenGui_fov.Parent=CoreGui circleFrame_fov=Instance.new("Frame")circleFrame_fov.Parent=screenGui_fov circleFrame_fov.Size=UDim2.new(0,aimbotFOV*2,0,aimbotFOV*2)circleFrame_fov.Position=UDim2.new(0.5,-aimbotFOV,0.5,-aimbotFOV)circleFrame_fov.BackgroundTransparency=1 circleFrame_fov.BorderSizePixel=0 circleFrame_fov.ZIndex=9999 Instance.new("UICorner",circleFrame_fov).CornerRadius=UDim.new(1,0)local stroke=Instance.new("UIStroke",circleFrame_fov)stroke.Thickness=1.5 stroke.Color=Color3.fromRGB(255,255,255)stroke.Transparency=0.2 end createFOVCircle()local function updateFOVSize()if circleFrame_fov and circleFrame_fov.Parent then circleFrame_fov.Size=UDim2.new(0,aimbotFOV*2,0,aimbotFOV*2)circleFrame_fov.Position=UDim2.new(0.5,-aimbotFOV,0.5,-aimbotFOV)end end local function isPlayerAlive(player)if not player or not player.Character then return false end local hrp=player.Character:FindFirstChild("HumanoidRootPart")local hum=player.Character:FindFirstChild("Humanoid")return hrp and hum and hum.Health>0 end local function isVisible(player)if not isPlayerAlive(player)then return false end local hrp=player.Character.HumanoidRootPart local origin=Camera.CFrame.Position local dir=hrp.Position-origin if dir.Magnitude>400 then return false end local params=RaycastParams.new()params.FilterType=Enum.RaycastFilterType.Blacklist params.FilterDescendantsInstances={LocalPlayer.Character}local result=workspace:Raycast(origin,dir,params)if not result then return true end return result.Instance and result.Instance:IsDescendantOf(player.Character)end local function getPartsForAim(player)if not isPlayerAlive(player)then return{}end if aimbotOnlyVisible and not isVisible(player)then return{}end local char=player.Character if not aimbotSmartAim then local head=char:FindFirstChild("Head")return head and{head}or{}end local names={"Head","UpperTorso","HumanoidRootPart","Torso","LowerTorso","LeftUpperArm","RightUpperArm","LeftUpperLeg","RightUpperLeg"}local parts={}for _,n in ipairs(names)do local p=char:FindFirstChild(n)if p and p:IsA("BasePart")then table.insert(parts,p)end end return parts end local function getClosestToCursor()local vp=Camera.ViewportSize local center=Vector2.new(vp.X/2,vp.Y/2)local bestPart,bestDist=nil,math.huge for _,pl in ipairs(Players:GetPlayers())do if pl==LocalPlayer then continue end if aimbotTeamCheck and not isEnemy(pl)then continue end for _,part in ipairs(getPartsForAim(pl))do local sp,on=Camera:WorldToViewportPoint(part.Position)if on then local d=(Vector2.new(sp.X,sp.Y)-center).Magnitude if d<=aimbotFOV and d