assert(game.PlaceId == 112940401739453, "This script is for Afterburn: Jet Dogfights") local env = getgenv() if env.DarksonAfterburn and env.DarksonAfterburn.Stop then env.DarksonAfterburn.Stop() end local Players = game:GetService("Players") local RS = game:GetService("ReplicatedStorage") local RunService = game:GetService("RunService") local lp = Players.LocalPlayer local folder = RS:WaitForChild("Afterburn") local Main = require(folder.Client.Main) local Config = require(folder.Core.Config) local Weapons = require(folder.Core.Weapons) local Flight = require(folder.Core.FlightModel) local M = {active=true, esp=true, allies=false, distance=30000, silent=false, wallcheck=true, lead=true, snapline=true, arrows=true, radar=true, radarRange=12000, runways=false, missileWarning=true, noSpread=false, rate=1, speed=false, speedMode="Velocity assist", cruiseSpeed=900, acceleration=180, boost=false, fullbright=false, noFog=false, noShake=false, customFov=false, cameraFov=90, redirects=0, corrections=0, frames=0, errors=0, seen=0} local controls={} env.DarksonAfterburn = M local cleanup, connections = {}, {} local function onCleanup(fn) table.insert(cleanup, fn) end local function connect(signal, fn) local c=signal:Connect(fn); table.insert(connections,c); return c end function M.Stop() if not M.active then return end M.active=false for _,c in connections do c:Disconnect() end for i=#cleanup,1,-1 do pcall(cleanup[i]) end end local function override(t,k,fn) local old=t[k];t[k]=fn onCleanup(function() if t[k]==fn then t[k]=old end end) return old end local function findFunction(root,name) local seen={} local function scan(f,depth) if seen[f] or depth>5 then return end seen[f]=true if debug.info(f,"n")==name then return f end for _,v in debug.getupvalues(f) do if type(v)=="function" then local got=scan(v,depth+1);if got then return got end end end end return scan(root,0) end local gunStep=findFunction(Main.start,"stepGun") assert(gunStep,"Afterburn weapon controller was not found") local state,own,entities,stateIndex local function refresh() state,own,entities=nil,nil,nil for i,v in debug.getupvalues(gunStep) do if type(v)=="table" then if type(v.f)=="table" and typeof(v.pos)=="Vector3" and v.phase then state=v;stateIndex=i elseif v.isLocal==true and v.view then own=v elseif v.isLocal==nil then for _,row in v do if type(row)=="table" and type(row.isLocal)=="boolean" and row.id then entities=v;break end end end end end end refresh() assert(entities,"Afterburn aircraft registry was not found") local gui=Instance.new("ScreenGui") gui.Name="DarksonAfterburnOverlay";gui.IgnoreGuiInset=true;gui.ResetOnSpawn=false gui.DisplayOrder=100;gui.Parent=lp:WaitForChild("PlayerGui") onCleanup(function()gui:Destroy()end) local function frame(parent) local f=Instance.new("Frame");f.BackgroundTransparency=1;f.BorderSizePixel=0;f.Parent=parent;return f end local function stroke(parent,color) local s=Instance.new("UIStroke");s.Thickness=1.5;s.Color=color;s.Parent=parent;return s end local red=Color3.fromRGB(255,95,85) local green=Color3.fromRGB(100,255,145) local blue=Color3.fromRGB(90,190,255) local dot=frame(gui);dot.Size=UDim2.fromOffset(8,8);dot.AnchorPoint=Vector2.new(.5,.5) dot.BackgroundTransparency=0;dot.BackgroundColor3=green local dr=Instance.new("UICorner");dr.CornerRadius=UDim.new(1,0);dr.Parent=dot local line=frame(gui);line.AnchorPoint=Vector2.new(.5,.5);line.BackgroundTransparency=0;line.BackgroundColor3=green local function text(parent,size) local l=Instance.new("TextLabel");l.BackgroundTransparency=1;l.Font=Enum.Font.SourceSansBold l.TextSize=size or 15;l.TextColor3=Color3.new(1,1,1);l.TextStrokeTransparency=.2;l.Parent=parent;return l end local radar=frame(gui);radar.Position=UDim2.new(0,20,1,-225);radar.Size=UDim2.fromOffset(190,190) radar.BackgroundTransparency=.25;radar.BackgroundColor3=Color3.fromRGB(15,20,30);stroke(radar,blue) local radarTitle=text(radar,14);radarTitle.Size=UDim2.new(1,0,0,20);radarTitle.Position=UDim2.fromOffset(0,-21);radarTitle.Text="RADAR / FORWARD UP" local selfDot=text(radar,18);selfDot.Text="▲";selfDot.Size=UDim2.fromOffset(16,16);selfDot.Position=UDim2.fromOffset(87,87) local hud=text(gui,17);hud.Size=UDim2.fromOffset(540,65);hud.Position=UDim2.new(.5,-270,1,-130) local missileHud=text(gui,20);missileHud.Size=UDim2.fromOffset(600,45);missileHud.Position=UDim2.new(.5,-300,0,100);missileHud.TextColor3=red;missileHud.Visible=false local missileSamples=setmetatable({},{__mode="k"}) local runwayLabels={} local markers={} local function marker(e) local row=markers[e] if row then return row end local box=frame(gui);local border=stroke(box,red) local label=Instance.new("TextLabel");label.BackgroundTransparency=1 label.AnchorPoint=Vector2.new(.5,1);label.Position=UDim2.new(.5,0,0,-3) label.Size=UDim2.fromOffset(340,36);label.Font=Enum.Font.SourceSansBold label.TextSize=15;label.TextStrokeTransparency=.2;label.TextColor3=red;label.Parent=box local arrow=text(gui,25);arrow.Size=UDim2.fromOffset(44,28);arrow.AnchorPoint=Vector2.new(.5,.5) local range=text(arrow,14);range.Size=UDim2.fromOffset(110,20);range.Position=UDim2.new(.5,-55,1,0) local pip=frame(radar);pip.Size=UDim2.fromOffset(6,6);pip.AnchorPoint=Vector2.new(.5,.5);pip.BackgroundTransparency=0 row={box=box,border=border,label=label,arrow=arrow,range=range,pip=pip};markers[e]=row;return row end local params=RaycastParams.new();params.FilterType=Enum.RaycastFilterType.Exclude local function clearPath(origin,point,e) local ignore={workspace:FindFirstChild("AfterburnFX"),workspace:FindFirstChild("AfterburnMissiles")} local list={} for _,v in ignore do if v then table.insert(list,v)end end if own and own.model then table.insert(list,own.model)end if e and e.model then table.insert(list,e.model)end params.FilterDescendantsInstances=list return workspace:Raycast(origin,point-origin,params)==nil end local function eligible(e) return own and state and e~=own and not e.isLocal and e.alive and not e.hidden and not e.safe and (own.team==nil or e.team~=own.team) and typeof(e.pos)=="Vector3" end local target local function origin() if not state then return nil end local length=own and own.view and own.view.dims and own.view.dims.size.Z or 50 return state.pos+state.rot.LookVector*length*.45 end local function leadPoint(e,muzzle) local relative=(e.vel or Vector3.zero)-(state.vel or Vector3.zero) local delta=e.pos-muzzle local t=delta.Magnitude/Config.Gun.Speed local displacement for _=1,8 do displacement=delta+relative*t+Vector3.new(0,.5*Config.Gravity*Config.Gun.DropShare*t*t,0) t=math.min(displacement.Magnitude/Config.Gun.Speed,60) end return muzzle+displacement,t end local function choose() local best,bestScore=nil,math.huge for _,e in entities do if eligible(e)then local d=(e.pos-state.pos).Magnitude if d1e-4 then M.redirects+=1 return CFrame.lookAt(cf.Position,cf.Position+(point-muzzle).Unit) end end end return oldGunFrame(cf,alpha) end) local originalGun={Rate=Config.Gun.Rate,Spread=Config.Gun.Spread} local function applyGun() Config.Gun.Rate=originalGun.Rate*M.rate Config.Gun.Spread=M.noSpread and 0 or originalGun.Spread end onCleanup(function()for k,v in originalGun do Config.Gun[k]=v end end) local function velocityAssist(s,input,dt) if s.phase~="Air" or input.brake or (input.throttle or 0)<.1 then return end local maxSpeed=math.min(M.cruiseSpeed,(s.f.MaxSpeed or 1700)*.92) local forward=s.rot.LookVector local current=s.vel:Dot(forward) local extra=math.clamp(maxSpeed-current,0,M.acceleration*math.clamp(dt,0,.1)) s.vel+=forward*extra if s.vel.Magnitude>(s.f.MaxSpeed or 1700)*.97 then s.vel=s.vel.Unit*(s.f.MaxSpeed or 1700)*.97 end s.speed=s.vel.Magnitude M.speedSteps=(M.speedSteps or 0)+1 end M.ApplyVelocityAssist=velocityAssist local function flightWrapper(original) return function(s,input,dt,...) local mine=stateIndex and debug.getupvalue(gunStep,stateIndex) if not M.active or s~=mine then return original(s,input,dt,...)end if M.boost then s.boost=1;s.boostOut=false;s.boostWait=0 end local effective=input if M.speed then if M.speedMode=="Throttle hold"then effective=table.clone(input) if not input.brake then effective.throttle=1 end end end local result=original(s,effective,dt,...) if M.speed and M.speedMode=="Velocity assist"then velocityAssist(s,effective,dt)end if M.boost then s.boost=1;s.boostOut=false end return result end end override(Flight,"step",flightWrapper(Flight.step)) local remotes=folder:FindFirstChild("Remotes") if remotes and remotes:FindFirstChild("Tell") then local correctionTimes={} connect(remotes.Tell.OnClientEvent,function(kind) if kind~="Correct"then return end M.corrections+=1 local now=os.clock();table.insert(correctionTimes,now) while correctionTimes[1] and now-correctionTimes[1]>2 do table.remove(correctionTimes,1)end if M.speed and #correctionTimes>=5 then M.speed=false;M.speedStatus="Paused: repeated server corrections. Try Throttle hold." if controls.speed then controls.speed:Set(false,true)end end end) end local timer,refreshTimer=0,0 local function updateMissileWarning() missileHud.Visible=false if not M.missileWarning or not state or not own or not own.alive then return end local container=workspace:FindFirstChild("AfterburnMissiles");if not container then return end local now=os.clock();local bestTime,bestDistance=math.huge,math.huge for _,part in container:GetChildren()do if part:IsA("BasePart")then local pos=part.Position;local old=missileSamples[part] missileSamples[part]={pos=pos,t=now} if old then local dt=now-old.t if dt>.01 and dt<.6 then local delta=pos-state.pos local velocity=(pos-old.pos)/dt-state.vel local vv=velocity:Dot(velocity) if vv>1 then local eta=-delta:Dot(velocity)/vv local miss=(delta+velocity*math.clamp(eta,0,4)).Magnitude if eta>0 and eta<4 and miss<200 and delta.Magnitude<4000 and eta=.15 then refreshTimer=0;refresh();updateMissileWarning()end if timer<1/30 then return end timer=0 local ok,err=pcall(function() local cam=workspace.CurrentCamera;if not cam then return end target=state and own and entities and choose()or nil M.target=target and target.name or nil local center=cam.ViewportSize/2 radar.Visible=M.radar hud.Visible=state~=nil and own~=nil and own.alive if hud.Visible then local targetInfo="No enemy" if target then local delta=target.pos-state.pos local closing=delta.Magnitude>.1 and -(target.vel-state.vel):Dot(delta.Unit)or 0 local _,flightTime=leadPoint(target,origin()) targetInfo=string.format("%s | %d studs | closing %+d studs/s | bullet %.2fs",target.name or"Target",delta.Magnitude,closing,flightTime) end hud.Text=string.format("%d studs/s | Alt %d | Boost %d%%\n%s",state.speed,state.pos.Y,state.boost*100,targetInfo) end dot.Visible=false;line.Visible=false local active={};M.seen=0 for _,e in entities or {} do if e.view and e.model and e.model.Parent and e.alive and not e.hidden and not e.isLocal then active[e]=true local row=marker(e) local distance=(e.pos-(state and state.pos or cam.CFrame.Position)).Magnitude local ally=own and own.team~=nil and e.team==own.team local p,on=cam:WorldToViewportPoint(e.pos) local color=e==target and green or ally and blue or red local show=distance<=M.distance and (M.allies or not ally) row.box.Visible=M.esp and on and distance<=M.distance and (M.allies or not ally) row.arrow.Visible=M.arrows and not on and show if row.arrow.Visible then local localPos=cam.CFrame:PointToObjectSpace(e.pos) local direction=Vector2.new(localPos.X,-localPos.Y) if direction.Magnitude<.01 then direction=Vector2.new(0,-1)end local unit=direction.Unit local margin=65 local edge=math.min((center.X-margin)/math.max(math.abs(unit.X),.001),(center.Y-margin)/math.max(math.abs(unit.Y),.001)) row.arrow.Position=UDim2.fromOffset(center.X+unit.X*edge,center.Y+unit.Y*edge) row.arrow.Rotation=math.deg(math.atan2(unit.Y,unit.X)) row.arrow.Text="➤";row.arrow.TextColor3=color row.range.Rotation=-row.arrow.Rotation;row.range.Text=string.format("%d",distance) end row.pip.Visible=M.radar and show if row.pip.Visible then local anchor=state and state.pos or cam.CFrame.Position local heading=state and state.rot.LookVector or cam.CFrame.LookVector local flat=Vector3.new(heading.X,0,heading.Z) if flat.Magnitude<.01 then flat=Vector3.new(0,0,-1)end flat=flat.Unit local right=flat:Cross(Vector3.yAxis) local offset=e.pos-anchor local v=Vector2.new(offset:Dot(right),-offset:Dot(flat))/M.radarRange if v.Magnitude>1 then v=v.Unit end row.pip.Position=UDim2.fromOffset(95+v.X*88,95+v.Y*88);row.pip.BackgroundColor3=color end if row.box.Visible then M.seen+=1 local size=e.view.dims and e.view.dims.size or Vector3.new(45,18,60) local span=math.max(size.X,size.Z) local pixels=math.clamp(span*cam.ViewportSize.Y/(2*math.tan(math.rad(cam.FieldOfView/2))*p.Z),12,450) row.box.Position=UDim2.fromOffset(p.X-pixels/2,p.Y-pixels*.3) row.box.Size=UDim2.fromOffset(pixels,pixels*.6) row.border.Color=color;row.label.TextColor3=color row.label.Text=string.format("%s%s | %s\n%d studs | Hull %d",e.isBot and "[BOT] "or"",e.name or tostring(e.id),e.jetName or "Jet",distance,math.max(0,e.hull or 0)) end end end for e,row in markers do if not active[e]then row.box:Destroy();row.arrow:Destroy();row.pip:Destroy();markers[e]=nil end end for i,lane in Config.Lanes do local label=runwayLabels[i] if not label then label=text(gui,15);label.AnchorPoint=Vector2.new(.5,.5);label.Size=UDim2.fromOffset(200,30);runwayLabels[i]=label end local p,on=cam:WorldToViewportPoint(lane.Start) label.Visible=M.runways and on if label.Visible then label.Position=UDim2.fromOffset(p.X,p.Y);label.Text=string.format("RUNWAY %s | %d studs",lane.Team or"",(lane.Start-cam.CFrame.Position).Magnitude);label.TextColor3=lane.Team==(own and own.team)and blue or red end end if target and (M.lead or M.snapline)then local point=leadPoint(target,origin()) local p,on=cam:WorldToViewportPoint(point) dot.Visible=M.lead and on;dot.Position=UDim2.fromOffset(p.X,p.Y) local body,bodyOn=cam:WorldToViewportPoint(target.pos) if M.snapline and bodyOn then local endpoint=Vector2.new(body.X,body.Y) local delta=endpoint-center line.Visible=true;line.Position=UDim2.fromOffset((center.X+endpoint.X)/2,(center.Y+endpoint.Y)/2) line.Size=UDim2.fromOffset(delta.Magnitude,1) line.Rotation=math.deg(math.atan2(delta.Y,delta.X)) end end M.frames+=1 end) if not ok then M.errors+=1;M.lastError=tostring(err)end end) local Lighting=game:GetService("Lighting") local lightOriginal={Brightness=Lighting.Brightness,Ambient=Lighting.Ambient,OutdoorAmbient=Lighting.OutdoorAmbient,ClockTime=Lighting.ClockTime,GlobalShadows=Lighting.GlobalShadows,FogEnd=Lighting.FogEnd,FogStart=Lighting.FogStart} local atmospheres={} for _,a in Lighting:GetChildren()do if a:IsA("Atmosphere")then atmospheres[a]={Density=a.Density,Haze=a.Haze}end end local cameraOriginal={} for _,k in {"Fov","FovBurner","FovCockpit","ShakeBurner"}do cameraOriginal[k]=Config.Camera[k]end local function applyWorld() for k,v in lightOriginal do if k~="FogEnd" and k~="FogStart"then local value=v if M.fullbright then value=({Brightness=2,Ambient=Color3.new(.8,.8,.8),OutdoorAmbient=Color3.new(.8,.8,.8),ClockTime=14,GlobalShadows=false})[k]end Lighting[k]=value else Lighting[k]=M.noFog and (k=="FogEnd"and 1000000 or 0)or v end end for a,values in atmospheres do if a.Parent then a.Density=M.noFog and 0 or values.Density;a.Haze=M.noFog and 0 or values.Haze end end end local function applyCamera() Config.Camera.ShakeBurner=M.noShake and 0 or cameraOriginal.ShakeBurner for _,k in {"Fov","FovBurner","FovCockpit"}do Config.Camera[k]=M.customFov and M.cameraFov or cameraOriginal[k]end end onCleanup(function() M.fullbright=false;M.noFog=false;M.customFov=false;M.noShake=false applyWorld();applyCamera() end) local success,Library=pcall(function()return loadstring(game:HttpGet("https://sirius.menu/gen2"))()end) if not success then M.Stop();error("Rayfield load failed: "..tostring(Library))end local Window=Library:CreateWindow({name="ASTRAX afterburn",sidebarLayout=true}) onCleanup(function()Window:Unload()end) local visual=Window:CreateTab({name="Visuals"}) local aim=Window:CreateTab({name="Cannon"}) local flight=Window:CreateTab({name="Aircraft"}) local world=Window:CreateTab({name="World / Camera"}) local discord=Window:CreateTab({name="Discord server"}) discord:CreateButton({name="Copy Discord link",callback=function() local copy=setclipboard or toclipboard if copy then copy("https://discord.gg/teh6H7q3v6") end end}) local function toggle(tab,name,key,callback) controls[key]=tab:CreateToggle({name=name,value=M[key],callback=function(v)M[key]=v;if callback then callback()end end}) end local function slider(tab,name,key,min,max,step,callback) tab:CreateSlider({name=name,range={min,max},increment=step or 1,value=M[key],callback=function(v)M[key]=v;if callback then callback()end end}) end toggle(visual,"Aircraft ESP","esp") toggle(visual,"Show Allies","allies") slider(visual,"ESP Distance (studs)","distance",500,30000,500) toggle(visual,"Lead Indicator","lead") toggle(visual,"Target Snapline","snapline") toggle(visual,"Off-screen Arrows","arrows") toggle(visual,"Aircraft Radar","radar") slider(visual,"Radar Range (studs)","radarRange",1000,30000,500) toggle(visual,"Runway Markers","runways") toggle(visual,"Missile Warning","missileWarning") toggle(aim,"Silent Aim","silent") toggle(aim,"Visibility Check","wallcheck") toggle(aim,"No Spread","noSpread",applyGun) slider(aim,"Fire Rate Multiplier","rate",1,3,.25,applyGun) toggle(flight,"Cruise Speed","speed",function()M.speedStatus=M.speed and "Enabled"or "Off"end) flight:CreateDropdown({name="Speed Mode",options={"Velocity assist","Throttle hold"},value=M.speedMode,callback=function(v)M.speedMode=v end}) slider(flight,"Cruise Speed (studs/s)","cruiseSpeed",200,1600,25) slider(flight,"Acceleration (studs/s²)","acceleration",25,500,25) toggle(flight,"Unlimited Afterburner","boost") toggle(world,"Fullbright","fullbright",applyWorld) toggle(world,"No Fog","noFog",applyWorld) toggle(world,"No Boost Shake","noShake",applyCamera) toggle(world,"Custom FOV","customFov",applyCamera) slider(world,"Camera FOV","cameraFov",50,110,1,applyCamera)