-- OneTap Hub v2 — ESP + Aimbot + Rayfield Gen2 Menu -- RightShift = toggle menu | Mouse2 (hold) = aimbot aim key local Rayfield = loadstring(game:HttpGet("https://sirius.menu/gen2"))() local Players = game:GetService("Players") local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local Camera = workspace.CurrentCamera local lp = Players.LocalPlayer local CFG = { espEnabled=true, boxes=true, healthBars=true, names=true, distances=true, skeletons=true, tracers=true, teamCheck=false, aimbotEnabled=true, fov=150, smoothing=0.18, aimbotTeamCheck=false, } local function newLine(col,thick) local l=Drawing.new("Line"); l.Color=col or Color3.new(1,1,1); l.Thickness=thick or 1; l.Visible=false; return l end local function newSquare(col,thick) local s=Drawing.new("Square"); s.Color=col or Color3.new(1,1,1); s.Thickness=thick or 1; s.Filled=false; s.Visible=false; return s end local function newText(sz,col) local t=Drawing.new("Text"); t.Size=sz or 13; t.Color=col or Color3.new(1,1,1) t.Outline=true; t.OutlineColor=Color3.new(0,0,0); t.Font=Drawing.Fonts.UI; t.Visible=false; return t end local BONES={{"Head","Torso"},{"Torso","Left Arm"},{"Torso","Right Arm"},{"Torso","Left Leg"},{"Torso","Right Leg"}} local LIMBS={"Head","Torso","Left Arm","Right Arm","Left Leg","Right Leg","HumanoidRootPart"} local drawings={} local function buildDrawings(p) local d={ box=newSquare(Color3.fromRGB(255,60,60),1.5), healthBg=newSquare(Color3.new(0,0,0),1), healthFill=Drawing.new("Square"), nameTag=newText(13,Color3.new(1,1,1)), distTag=newText(11,Color3.fromRGB(220,220,220)), tracer=newLine(Color3.fromRGB(255,60,60),1), bones={}, } d.healthFill.Filled=true; d.healthFill.Color=Color3.fromRGB(60,220,60); d.healthFill.Visible=false for i=1,#BONES do d.bones[i]=newLine(Color3.new(1,1,1),1) end drawings[p]=d end local function removeDrawings(p) local d=drawings[p]; if not d then return end d.box:Remove();d.healthBg:Remove();d.healthFill:Remove() d.nameTag:Remove();d.distTag:Remove();d.tracer:Remove() for _,b in ipairs(d.bones) do b:Remove() end; drawings[p]=nil end local function hideDrawings(p) local d=drawings[p]; if not d then return end d.box.Visible=false;d.healthBg.Visible=false;d.healthFill.Visible=false d.nameTag.Visible=false;d.distTag.Visible=false;d.tracer.Visible=false for _,b in ipairs(d.bones) do b.Visible=false end end local fovCircle=Drawing.new("Circle") fovCircle.Thickness=1;fovCircle.Color=Color3.new(1,1,1);fovCircle.Filled=false;fovCircle.Visible=false local function isSameTeam(p) if lp.Team and p.Team then return lp.Team==p.Team end; return lp.TeamColor==p.TeamColor end local function worldToVP(pos) local sp,on=Camera:WorldToViewportPoint(pos); return Vector2.new(sp.X,sp.Y),on,sp.Z end local function getCharParts(char) local parts={} for _,name in ipairs(LIMBS) do local p2=char:FindFirstChild(name); if p2 then parts[name]=p2 end end return parts end local function getAABB(char) local minX,minY,maxX,maxY=math.huge,math.huge,-math.huge,-math.huge; local anyOn=false for _,name in ipairs({"Head","Torso","Left Arm","Right Arm","Left Leg","Right Leg"}) do local part=char:FindFirstChild(name) if part then local sp,on,depth=worldToVP(part.Position) if on and depth>0 then anyOn=true if sp.XmaxX then maxX=sp.X end; if sp.Y>maxY then maxY=sp.Y end end end end if not anyOn then return nil end return Vector2.new(minX,minY),Vector2.new(maxX,maxY) end local function screenCenter() local vps=Camera.ViewportSize; return Vector2.new(vps.X/2,vps.Y/2) end local function getClosestTarget() local center=screenCenter(); local bestDist,bestPart=math.huge,nil for _,p in ipairs(Players:GetPlayers()) do if p==lp then continue end if CFG.aimbotTeamCheck and isSameTeam(p) then continue end local char=p.Character; if not char then continue end local hum=char:FindFirstChildOfClass("Humanoid"); if not hum or hum.Health<=0 then continue end local head=char:FindFirstChild("Head"); if not head then continue end local sp,on,depth=worldToVP(head.Position); if not on or depth<=0 then continue end local dist=(sp-center).Magnitude if dist