local v0;local v1,v2=pcall(function() return loadstring(game:HttpGet("https://sirius.menu/rayfield"))();end);if (v1 and v2) then v0=v2;else local v166=0 -0 ;while true do if (v166==0) then warn("ERROR: Rayfield failed to load (returned nil or error). The script cannot run.");return;end end end local v3=game:GetService("Players");local v4=game:GetService("Workspace");local v5=game:GetService("RunService");local v6=game:GetService("UserInputService");local v7=game:GetService("Lighting");local v8=v3.LocalPlayer;local v9=v8:WaitForChild("PlayerGui",5);local v10=v4.CurrentCamera;local v11=nil;local v12=0 + 0 ;local v13=1130 -(87 + 1043) ;local v14=false;local v15=v8:GetAttribute("CameraMaxZoomDistance") or 128 ;local v16=nil;local v17=false;local v18=478 -(10 + 438) ;local v19={Forward=Enum.KeyCode.W,Backward=Enum.KeyCode.S,Left=Enum.KeyCode.A,Right=Enum.KeyCode.D,Up=Enum.KeyCode.Space,Down=Enum.KeyCode.LeftControl};local v20=v7.Ambient;local v21=v7.Brightness;local v22=v7.ClockTime;local v23=v7.FogEnd;local v24=16;local v25=v8.Character or v8.CharacterAdded:Wait() ;local v26=v25:FindFirstChildOfClass("Humanoid");if v26 then v24=v26.WalkSpeed;end getgenv().DesiredWalkSpeed=v24;local v28={};local v29=nil;v8.CharacterAdded:Connect(function(v72) local v73=0 + 0 ;local v74;while true do if (v73==1) then if getgenv().ActiveESPFlags['FNAF_Noclip_Toggle'] then ToggleNoclip(true);end if v17 then ToggleFly(true);end v73=2;end if (v73==(7 -5)) then if getgenv().ActiveESPFlags['FNAF_InstantPrompt_Toggle'] then ToggleInstantPrompt(true);end break;end if (v73==0) then v74=v72:WaitForChild("Humanoid");v74.WalkSpeed=getgenv().DesiredWalkSpeed;v73=1 + 0 ;end end end);getgenv().MultiplePartESP={};getgenv().DynamicESPConnections={};getgenv().ActiveESPFlags={};getgenv().FNAF4_Highlights={};getgenv().FNAF_ESP_DATA={Freddy={P={"Animatronics","Freddy","FreddyNPC"},CO=Color3.new(254.5 -(163 + 91) ,1930.25 -(1869 + 61) ,0),CF=Color3.new(0.6,0.35 + 0 ,0.1 -0 ),GN="FreddyFNAFESPGUI",R=nil,M=nil,T="FNAF1"},Bonnie={P={"Animatronics","Bonnie","BonnieNPC"},CO=Color3.new(0 + 0 ,0 -0 ,1 + 0 ),CF=Color3.new(0.4,0.4,1475 -(1329 + 145) ),GN="BonnieFNAFESPGUI",R=nil,M=nil,T="FNAF1"},Chica={P={"Animatronics","Chica","ChicaNPC"},CO=Color3.new(1,719 -(15 + 703) ,0 + 0 ),CF=Color3.new(439 -(262 + 176) ,1,1721.5 -(345 + 1376) ),GN="ChicaFNAFESPGUI",R=nil,M=nil,T="FNAF1"},Foxy={P={"Animatronics","Foxy","FoxyNPC"},CO=Color3.new(2 -1 ,0,1206 -(696 + 510) ),CF=Color3.new(1 -0 ,0.4,0.4),GN="FoxyFNAFESPGUI",R=nil,M=nil,T="FNAF1"},["Foxy Curtain"]={P={"Animatronics","Foxy","FoxyCurtain"},CO=Color3.new(0.5 + 0 ,0 -0 ,1),CF=Color3.new(0.7,0.4 -0 ,1),GN="CurtainFNAFESPGUI",R=nil,M=nil,T="FNAF1"},["Withered Freddy"]={P={"Animatronics","Freddy","FreddyNPC"},CO=Color3.new(0.3 + 0 ,0.2,0.1 + 0 ),CF=Color3.new(836.4 -(660 + 176) ,0.3 + 0 ,0.2),GN="WFreddyFNAFESPGUI",R=nil,M=nil,T="Withered"},["Withered Bonnie"]={P={"Animatronics","Bonnie","BonnieNPC"},CO=Color3.new(675 -(534 + 141) ,0,0.4 + 0 ),CF=Color3.new(0.1 + 0 ,0.1 + 0 ,0.6 -0 ),GN="WBonnaFNAFESPGUI",R=nil,M=nil,T="Withered"},["Withered Chica"]={P={"Animatronics","Chica","ChicaNPC"},CO=Color3.new(0.8 + 0 ,0.5,0.1 + 0 ),CF=Color3.new(0.9,0.6,396.2 -(115 + 281) ),GN="WChicaFNAFESPGUI",R=nil,M=nil,T="Withered"},["Withered Foxy"]={P={"Animatronics","Foxy","FoxyNPC"},CO=Color3.new(0.5 -0 ,0,0),CF=Color3.new(0.7,0.1,0.1),GN="WFoxyFNAFESPGUI",R=nil,M=nil,T="Withered"},["Toy Freddy"]={P={"Animatronics","ToyFreddy","ToyFreddyNPC"},CO=Color3.new(0.4,867.3 -(550 + 317) ,0.2),CF=Color3.new(0.6 -0 ,0.5 -0 ,0.4 -0 ),GN="ToyFreddyFNAFESPGUI",R=nil,M=nil,T="Toy"},["Toy Bonnie"]={P={"Animatronics","ToyBonnie","ToyBonnieNPC"},CO=Color3.new(1990.1 -(582 + 1408) ,0.7 -0 ,1 -0 ),CF=Color3.new(0.2 -0 ,1824.8 -(1195 + 629) ,1 -0 ),GN="ToyBonnieFNAFESPGUI",R=nil,M=nil,T="Toy"},["Toy Chica"]={P={"Animatronics","ToyChica","ToyChicaNPC"},CO=Color3.new(1 + 0 ,1 + 0 ,0),CF=Color3.new(1 -0 ,1,0.4),GN="ToyChicaFNAFESPGUI",R=nil,M=nil,T="Toy"},["The Puppet"]={P={"Animatronics","Puppet","PuppetNPC"},CO=Color3.new(0,0,0),CF=Color3.new(0.1,1636.1 -(1373 + 263) ,0.1),GN="PuppetFNAFESPGUI",R=nil,M=nil,T="Other"},Mangle={P={"Animatronics","Mangle","MangleNPC"},CO=Color3.new(0.7 -0 ,0.2,0.5 -0 ),CF=Color3.new(1384.8 -(746 + 638) ,0.4 + 0 ,0.6),GN="MangleFNAFESPGUI",R=nil,M=nil,T="Other"},["Balloon Boy"]={P={"Animatronics","BalloonBoy","BalloonBoyNPC"},CO=Color3.new(1581.1 -(1535 + 46) ,0.8 + 0 ,0.8 + 0 ),CF=Color3.new(560.3 -(306 + 254) ,0.9 + 0 ,0.9 -0 ),GN="BBoyFNAFESPGUI",R=nil,M=nil,T="Other"},["Shadow Freddy"]={P={"Animatronics","ShadowFreddy","ShadowFreddyNPC"},CO=Color3.new(0.2 -0 ,0,603.4 -(268 + 335) ),CF=Color3.new(290.4 -(60 + 230) ,572.2 -(426 + 146) ,0.6 + 0 ),GN="SFreddyFNAFESPGUI",R=nil,M=nil,T="Other"},["Shadow Bonnie"]={P={"Animatronics","ShadowBonnie","ShadowBonnieNPC"},CO=Color3.new(0.1,0,0.2 -0 ),CF=Color3.new(0.3 + 0 ,0.1,1024.4 -(706 + 318) ),GN="SBonnaFNAFESPGUI",R=nil,M=nil,T="Other"},Springtrap={T="FNAF3",CO=Color3.new(1251.1 -(721 + 530) ,1271.2 -(945 + 326) ,0.05 -0 ),CF=Color3.new(0.2 + 0 ,0.4,0.1),GN="SpringtrapFNAFESPGUI",R=nil,M=nil,P_Dynamic={{"Animatronics","Springtrap","SpringtrapNPC","Springtrap"}}},["Nightmare Bonnie"]={P={"Animatronics","Bonnie","BonnieNPC"},CO=Color3.fromRGB(1171 -(418 + 753) ,0 + 0 ,255),CF=Color3.new(0.4 + 0 ,0.4,1),GN="NBonnaFNAFESPGUI",R=nil,M=nil,T="FNAF4"},["Nightmare Chica"]={P={"Animatronics","Chica","ChicaNPC"},CO=Color3.fromRGB(255,255,0),CF=Color3.new(1,530 -(406 + 123) ,1769.5 -(1749 + 20) ),GN="NChicaFNAFESPGUI",R=nil,M=nil,T="FNAF4"},["Nightmare Foxy"]={P={"Animatronics","Foxy","FoxyNPC"},CO=Color3.fromRGB(255,0 + 0 ,0),CF=Color3.new(1146 -(466 + 679) ,0.4 -0 ,0.4 -0 ),GN="NFoxyFNAFESPGUI",R=nil,M=nil,T="FNAF4"},["Nightmare Fredbear"]={P={"Animatronics","Fredbear","FredbearNPC"},CO=Color3.fromRGB(255,42 + 123 ,0 -0 ),CF=Color3.new(2 -1 ,114.6 -(4 + 110) ,584.2 -(57 + 527) ),GN="NFredbearFNAFESPGUI",R=nil,M=nil,T="FNAF4"},Ballora={T="FNAF5",CO=Color3.new(1427.6 -(41 + 1386) ,103 -(17 + 86) ,1),CF=Color3.new(0.8 + 0 ,0.3 -0 ,2 -1 ),GN="BalloraFNAFESPGUI",R=nil,M=nil,P_Dynamic={{"BalloraNight1","Ballora"},{"Animatronics","BalloraNPC","BalloraNPC","Ballora"}}},["Foxy (SL)"]={T="FNAF5",CO=Color3.new(1,1257.5 -(1043 + 214) ,0.8 -0 ),CF=Color3.new(1213 -(323 + 889) ,0.7,0.9),GN="FoxySLFNAFESPGUI",R=nil,M=nil,P_Dynamic={{"FoxyNight1","Foxy"},{"FoxyNight2","Foxy"}}}};local v35=getgenv().FNAF_ESP_DATA;local v36=v9;local v37=v4;local v38=getgenv().ActiveESPFlags;local function v39() for v168,v169 in pairs(v35) do if not v169.P_Dynamic then task.spawn(function() local v234=0 -0 ;local v235;local v236;while true do if (v234==0) then v235,v236=pcall(function() local v348=0 + 0 ;local v349;while true do if (v348==(1 + 0)) then return v349;end if (0==v348) then v349=v37;for v379,v380 in ipairs(v169.P) do v349=v349:FindFirstChild(v380,0.1);if not v349 then return nil;end end v348=851 -(20 + 830) ;end end end);if (v235 and v236 and v236:IsA("Model")) then local v353=0 + 0 ;while true do if (v353==(126 -(116 + 10))) then v169.M=v236;v169.R=v169.M:FindFirstChild("HumanoidRootPart") or v169.M ;break;end end end break;end end end);end end end local function v40(v75,v76) if (v75 and ((v75.HoldDuration>(0 + 0)) or (v76==(738 -(542 + 196))))) then local v182=0;while true do if (v182==(0 -0)) then v28[v75]=v28[v75] or v75.HoldDuration ;v75.HoldDuration=v76;break;end end end end local function v41(v77) if v77 then local v183=0 + 0 ;while true do if (v183==(1 + 0)) then print("Instant Prompt Activado (Delay = 0).");break;end if ((0 + 0)==v183) then for v316,v317 in ipairs(v4:GetDescendants()) do if v317:IsA("ProximityPrompt") then v40(v317,0 -0 );end end v29=v4.DescendantAdded:Connect(function(v318) if v318:IsA("ProximityPrompt") then v40(v318,0);end end);v183=2 -1 ;end end else if (v29 and (type(v29.Disconnect)=="function")) then v29:Disconnect();v29=nil;end for v212,v213 in pairs(v28) do if (v212 and v212.Parent) then v212.HoldDuration=v213;end v28[v212]=nil;end print("Instant Prompt Desactivado (Delay Restaurado).");end end local function v42(v78) local v79=1551 -(1126 + 425) ;while true do if (v79==(405 -(118 + 287))) then getgenv().ActiveESPFlags['FNAF_InstantPrompt_Toggle']=v78;v41(v78);break;end end end local function v43(v80) local v81=v36:FindFirstChild(v80.GN);if not v81 then v81=Instance.new("ScreenGui");v81.Name=v80.GN;v81.Parent=v36;end return v81;end local function v44(v82) if v82.M then return v82.M;end local v83,v84=pcall(function() local v170=v37;for v187,v188 in ipairs(v82.P) do local v189=0 -0 ;while true do if (v189==0) then v170=v170:FindFirstChild(v188);if not v170 then return nil;end break;end end end return v170;end);if (v83 and v84 and v84:IsA("Model")) then v82.M=v84;v82.R=v82.M:FindFirstChild("HumanoidRootPart") or v82.M ;return v82.M;else return nil;end end local function v45(v85,v86,v87) local v88=v36:FindFirstChild(v86.GN);local v89=getgenv().MultiplePartESP[v85] or {} ;local v90=(v86.T=="FNAF3") or (v86.T=="FNAF5") or (v86.T=="FNAF4") ;if v87 then local v192=v43(v86);if v90 then if not v86.M then return;end local v237=1;local v238=1121 -(118 + 1003) ;for v288,v289 in pairs(v89) do if (v289 and (v289.Parent==v192)) then v289:Destroy();end end v89={};for v290,v291 in ipairs(v86.M:GetDescendants()) do if (v291:IsA("BasePart") or v291:IsA("MeshPart") or v291:IsA("UnionOperation")) then local v333=0;local v334;while true do if (v333==(2 -1)) then v334.FillColor=v86.CF;v334.FillTransparency=v237;v333=379 -(142 + 235) ;end if (v333==0) then v334=Instance.new("Highlight");v334.OutlineColor=v86.CO;v333=4 -3 ;end if (v333==(1 + 2)) then v334.Parent=v192;v89[v291]=v334;break;end if (v333==2) then v334.OutlineTransparency=v238;v334.Adornee=v291;v333=3;end end end end getgenv().MultiplePartESP[v85]=v89;else local v240=977 -(553 + 424) ;local v241;while true do if (v240==(1 -0)) then if not v241 then local v354=0;while true do if (v354==(1 + 0)) then v241.OutlineColor=v86.CO;v241.FillColor=v86.CF;v354=2 + 0 ;end if (v354==(0 + 0)) then v241=Instance.new("Highlight");v241.Name="Highlight";v354=1 + 0 ;end if (v354==2) then v241.FillTransparency=0.5;v241.Adornee=v86.M;v354=2 + 1 ;end if (v354==(6 -3)) then v241.Parent=v192;break;end end end break;end if (v240==0) then if not v86.M then return;end v241=v192:FindFirstChild("Highlight");v240=1;end end end elseif v88 then if v90 then for v335,v336 in pairs(v89) do if (v336 and (v336.Parent==v88)) then v336:Destroy();end end getgenv().MultiplePartESP[v85]={};end local v242=v88:FindFirstChild("Highlight");if v242 then v242:Destroy();end if (( #v88:GetChildren()==(0 -0)) and (v88.Parent==v36)) then v88:Destroy();end end end local function v46(v91,v92,v93) local v94=v36:FindFirstChild(v92.GN);local v95=(v92.T=="FNAF3") or (v92.T=="FNAF5") or (v92.T=="FNAF4") ;if v93 then if ( not v92.M or not v92.R) then return;end local v193=v43(v92);local v194=v193:FindFirstChild("NameBillboard");if not v194 then v194=Instance.new("BillboardGui");v194.Size=UDim2.new(0 -0 ,44 + 106 ,0 -0 ,803 -(239 + 514) );v194.StudsOffset=Vector3.new(0 + 0 ,4,1329 -(797 + 532) );v194.Adornee=v92.R;v194.AlwaysOnTop=true;v194.Name="NameBillboard";v194.Parent=v193;local v250=Instance.new("TextLabel");v250.Text=v91;v250.TextColor3=v92.CO;v250.TextSize=20;v250.BackgroundTransparency=1 + 0 ;v250.Size=UDim2.new(1,0 + 0 ,2 -1 ,1202 -(373 + 829) );v250.Font=Enum.Font.SourceSansBold;v250.Parent=v194;end elseif v94 then local v260=v94:FindFirstChild("NameBillboard");if v260 then v260:Destroy();end if (( #v94:GetChildren()==0) and (v94.Parent==v36)) then v94:Destroy();end end end local function v47(v96) local v97=0;local v98;while true do if (v97==0) then v98=v37;for v261,v262 in ipairs(v96) do v98=v98:FindFirstChild(v262,731.1 -(476 + 255) );if not v98 then return nil;end end v97=1131 -(369 + 761) ;end if (v97==1) then return v98;end end end local v48={{Path={"Animatronics","Bonnie","BonnieNPC"},TargetType="Model",Name="BonnieNPC",Color=Color3.fromRGB(0,0,493 -(64 + 174) )},{Path={"Animatronics","Chica","ChicaNPC"},TargetType="Model",Name="ChicaNPC",Color=Color3.fromRGB(471 -(42 + 174) ,192 + 63 ,0)},{Path={"Animatronics","Foxy","FoxyNPC"},TargetType="Model",Name="FoxyNPC",Color=Color3.fromRGB(776 -521 ,0 + 0 ,0 + 0 )},{Path={"Animatronics","Freddy","Freddle1"},TargetType="Part",Color=Color3.fromRGB(104 + 61 ,110 -68 ,1975 -(565 + 1368) )},{Path={"Animatronics","Freddy","Freddle2"},TargetType="Part",Color=Color3.fromRGB(154 + 11 ,898 -(564 + 292) ,71 -29 )},{Path={"Animatronics","Freddy","Freddle3"},TargetType="Part",Color=Color3.fromRGB(1166 -(938 + 63) ,42,33 + 9 )},{Path={"Animatronics","Plushtrap","PlushtrapNPC"},TargetType="Model",Color=Color3.fromRGB(22 + 12 ,139,34)},{Path={"Animatronics","Plushtrap","PlushtrapNPC","Plushtrap"},TargetType="Part",Color=Color3.fromRGB(49 -15 ,1231 -(975 + 117) ,1909 -(157 + 1718) )},{Path={"Animatronics","Fredbear","FredbearNPC"},TargetType="Model",Color=Color3.fromRGB(255,1198 -(697 + 321) ,0 -0 )},{Path={"Animatronics","Fredbear","BedHead"},TargetType="Model",Color=Color3.fromRGB(477 -222 ,180,0 -0 )}};local function v49(v99) local v100=getgenv().FNAF4_Highlights;local v101="FNAF4_Consolidated_ESP_Alex";local function v102() local v171=1227 -(322 + 905) ;local v172;while true do if (v171==1) then return v172;end if (v171==0) then v172=v36:FindFirstChild(v101);if not v172 then local v320=611 -(602 + 9) ;while true do if (v320==(1190 -(449 + 740))) then v172.Parent=v36;break;end if (v320==(872 -(826 + 46))) then v172=Instance.new("ScreenGui");v172.Name=v101;v320=948 -(245 + 702) ;end end end v171=1;end end end local v103=v102();if v99 then for v216,v217 in ipairs(v100) do if (v217 and v217.Parent) then v217:Destroy();end end table.clear(v100);for v218,v219 in ipairs(v48) do local v220=v47(v219.Path);if v220 then local v292=0 -0 ;local v293;while true do if (v292==(0 + 0)) then v293=v220:FindFirstChild("AlexESP_Outline");if not v293 then v293=Instance.new("Highlight");v293.Name="AlexESP_Outline";v293.FillTransparency=1899 -(260 + 1638) ;v293.OutlineTransparency=440 -(382 + 58) ;v293.OutlineColor=v219.Color;if ((v219.TargetType=="Model") and v220:IsA("Model")) then v293.Adornee=v220;else local v393=0 -0 ;while true do if (v393==(0 + 0)) then v293.Adornee=(v220:IsA("BasePart") and v220) or v220:FindFirstChildOfClass("BasePart") ;if not v293.Adornee then v293.Adornee=v220:FindFirstChild("HumanoidRootPart") or v220 ;end break;end end end if v293.Adornee then local v394=0 -0 ;while true do if (v394==(0 -0)) then v293.Parent=v220;table.insert(v100,v293);break;end end else warn("Alex: No se pudo encontrar una parte para Adornee en: " .. table.concat(v219.Path,"/") );v293:Destroy();end end break;end end else warn("Alex: No se pudo encontrar el objeto en la ruta: " .. table.concat(v219.Path,"/") );end end if not getgenv().FNAF4_CleanupConnection then getgenv().FNAF4_CleanupConnection=v5.Heartbeat:Connect(function() local v294=1205 -(902 + 303) ;local v295;while true do if (v294==1) then for v357= #v295,1 -0 , -1 do table.remove(v100,v295[v357]);end if (( #v103:GetChildren()==(0 -0)) and (v103.Parent==v36)) then v103:Destroy();if getgenv().FNAF4_CleanupConnection then getgenv().FNAF4_CleanupConnection:Disconnect();getgenv().FNAF4_CleanupConnection=nil;end end break;end if (v294==0) then v295={};for v358,v359 in ipairs(v100) do if ( not v359 or not v359.Adornee or not v359.Adornee:IsDescendantOf(v37)) then if (v359 and v359.Parent) then v359:Destroy();end table.insert(v295,v358);end end v294=1;end end end);end print("Alex: ESP Consolidado (TODOS los Animatrónicos de FNAF 4) Activado.");else local v195=0;local v196;while true do if (v195==(1 + 0)) then table.clear(v100);v196=v36:FindFirstChild(v101);v195=1692 -(1121 + 569) ;end if (v195==(216 -(22 + 192))) then if v196 then v196:Destroy();end print("Alex: ESP Consolidado Desactivado.");break;end if (0==v195) then if getgenv().FNAF4_CleanupConnection then getgenv().FNAF4_CleanupConnection:Disconnect();getgenv().FNAF4_CleanupConnection=nil;end for v321,v322 in ipairs(v100) do if (v322 and v322.Parent) then v322:Destroy();end end v195=684 -(483 + 200) ;end end end end local function v50(v104,v105) if getgenv().DynamicESPConnections[v105] then return;end local v106={};if not v104.P_Dynamic then return;end for v173,v174 in ipairs(v104.P_Dynamic) do local v175=v174[ #v174];v106[v175]=true;end local function v107(v177) if v106[v177.Name] then local v221=v177:GetFullName();for v264,v265 in ipairs(v104.P_Dynamic) do local v266=v37;for v296,v297 in ipairs(v265) do local v298=0;while true do if (v298==(1463 -(1404 + 59))) then v266=v266:FindFirstChild(v297);if not v266 then return;end break;end end end if ((v266==v177) and v177:IsA("Model")) then local v323=v35[v105];if not v323 then return;end v323.M=v177;v323.R=v177:FindFirstChild("HumanoidRootPart",true) or v177 ;local v326=getgenv().ActiveESPFlags;local v327="FNAF_Outline_" .. v105:gsub(" ","") ;local v328="FNAF_Name_" .. v105:gsub(" ","") ;if v326[v327] then v45(v105,v323,true);end if v326[v328] then v46(v105,v323,true);end print("✅ " .. v105 .. " model found at " .. v221 .. "! ESP activated." );break;end end end end local v108=v37.DescendantAdded:Connect(v107);getgenv().DynamicESPConnections[v105]=v108;print("▶️ " .. v105 .. " ESP Listener started." );for v178,v179 in ipairs(v37:GetDescendants()) do v107(v179);end end local function v51(v110,v111) local v112=getgenv().DynamicESPConnections[v111];v45(v111,v110,false);v46(v111,v110,false);local v113=getgenv().ActiveESPFlags["FNAF_Outline_" .. v111:gsub(" ","") ];local v114=getgenv().ActiveESPFlags["FNAF_Name_" .. v111:gsub(" ","") ];if ( not v113 and not v114) then local v197=0;while true do if (v197==0) then if (v112 and (type(v112.Disconnect)=="function")) then local v338=0 -0 ;while true do if (v338==(1 -0)) then print("🛑 " .. v111 .. " ESP Listener stopped." );break;end if (v338==0) then v112:Disconnect();getgenv().DynamicESPConnections[v111]=nil;v338=766 -(468 + 297) ;end end end v110.M=nil;v197=563 -(334 + 228) ;end if (v197==(3 -2)) then v110.R=nil;break;end end end end local function v52(v115,v116) if not v115 then return;end for v180,v181 in ipairs(v115:GetDescendants()) do if (v181:IsA("BasePart") or v181:IsA("Decal") or v181:IsA("MeshPart")) then v181.LocalTransparencyModifier=v116;end end end local function v53() local v117=0 -0 ;local v118;local v119;while true do if (v117==2) then v10.CameraType=Enum.CameraType.Scriptable;v6.MouseBehavior=Enum.MouseBehavior.LockCenter;v117=5 -2 ;end if (v117==(1 + 2)) then v11=v5.RenderStepped:Connect(function(v267) local v268=236 -(141 + 95) ;local v269;local v270;local v271;local v272;local v273;local v274;while true do if (v268==(2 + 0)) then v271=CFrame.Angles(0,math.rad(v12),0) * CFrame.Angles(math.rad(v13),0,0 -0 ) ;v272=v119.Position + Vector3.new(0 -0 ,1.5 + 0 ,0 -0 ) ;v268=3 + 0 ;end if (v268==(0 + 0)) then v269=v6:GetMouseDelta();v270=0.15 -0 ;v268=1;end if (v268==(1 + 0)) then v12=v12-(v269.X * v270) ;v13=math.max( -80,math.min(80,v13-(v269.Y * v270) ));v268=165 -(92 + 71) ;end if (v268==3) then v273=10;v274=CFrame.new(v272) * v271:Inverse() * CFrame.new(0 + 0 ,0,v273) ;v268=4;end if (v268==4) then v10.CFrame=v274;v119.CFrame=CFrame.new(v119.Position) * CFrame.Angles(0 -0 ,math.rad(v12),765 -(574 + 191) ) ;break;end end end);break;end if (v117==(1 + 0)) then if ( not v119 or v11) then return;end if v118:FindFirstChild("Humanoid") then v118.Humanoid.CameraOffset=Vector3.new(0 -0 ,0,0 + 0 );end v117=851 -(254 + 595) ;end if (v117==0) then v118=v8.Character or v8.CharacterAdded:Wait() ;v119=v118:FindFirstChild("HumanoidRootPart");v117=127 -(55 + 71) ;end end end local function v54() if v11 then local v198=0 -0 ;while true do if (v198==(1790 -(573 + 1217))) then v11:Disconnect();v11=nil;break;end end end v6.MouseBehavior=Enum.MouseBehavior.Default;v10.CameraType=Enum.CameraType.Custom;end local function v55(v124) local v125=0;while true do if (v125==(0 -0)) then v14=v124;if v124 then v8.CameraMinZoomDistance=10;v8.CameraMaxZoomDistance=10;v52(v8.Character,0 + 0 );v53();else local v304=0 -0 ;while true do if (v304==(940 -(714 + 225))) then v8.CameraMinZoomDistance=0.5 -0 ;v8.CameraMaxZoomDistance=v15;break;end if (v304==(0 -0)) then v54();v52(v8.Character,1 + 0 );v304=1 -0 ;end end end break;end end end local function v56(v126) getgenv().ActiveESPFlags['FNAF_Noclip_Toggle']=v126;local v128=v8.Character;if not v128 then return;end if v126 then print("Noclip Activado. La colisión será eliminada continuamente.");else for v227,v228 in ipairs(v128:GetChildren()) do if v228:IsA("BasePart") then v228.CanCollide=true;end end print("Noclip Desactivado.");end end local function v57(v129) v17=v129;local v130=v8.Character;if not v130 then return;end local v131=v130:FindFirstChildOfClass("Humanoid");local v132=v130:FindFirstChild("HumanoidRootPart");if v129 then local v199=0;while true do if (v199==1) then if v132 then v132.Velocity=Vector3.new(806 -(118 + 688) ,48 -(25 + 23) ,0);end if not getgenv().ActiveESPFlags['FNAF_Noclip_Toggle'] then v56(true);end v199=2;end if (v199==(0 + 0)) then v4.Gravity=1886 -(927 + 959) ;if v131 then v131.PlatformStand=true;end v199=3 -2 ;end if (v199==(734 -(16 + 716))) then v16=v5.RenderStepped:Connect(function(v329) local v330=0;local v331;while true do if (1==v330) then if v6:IsKeyDown(v19.Backward) then v331=v331-v10.CFrame.lookVector ;end if v6:IsKeyDown(v19.Left) then v331=v331-v10.CFrame.rightVector ;end v330=2;end if (v330==0) then v331=Vector3.new(0 -0 ,97 -(11 + 86) ,0);if v6:IsKeyDown(v19.Forward) then v331=v331 + v10.CFrame.lookVector ;end v330=2 -1 ;end if (v330==2) then if v6:IsKeyDown(v19.Right) then v331=v331 + v10.CFrame.rightVector ;end if v6:IsKeyDown(v19.Up) then v331=v331 + Vector3.new(0,286 -(175 + 110) ,0) ;end v330=6 -3 ;end if (v330==3) then if v6:IsKeyDown(v19.Down) then v331=v331-Vector3.new(0 -0 ,1797 -(503 + 1293) ,0 -0 ) ;end if ((v331.Magnitude>0) and v132) then local v375=v331.unit;local v376=v375 * v18 * v329 ;v132.CFrame=v132.CFrame + v376 ;v132.Velocity=Vector3.new(0 + 0 ,0,1061 -(810 + 251) );end break;end end end);print("Fly Mode Activado.");break;end end else local v200=0 + 0 ;while true do if (v200==(0 + 0)) then if v16 then local v343=0 + 0 ;while true do if (v343==(533 -(43 + 490))) then v16:Disconnect();v16=nil;break;end end end v4.Gravity=929.2 -(711 + 22) ;v200=1;end if (v200==(7 -5)) then print("Fly Mode Desactivado.");break;end if (v200==(860 -(240 + 619))) then if v131 then v131.PlatformStand=false;end if getgenv().ActiveESPFlags['FNAF_Noclip_Toggle'] then v56(false);end v200=1 + 1 ;end end end end local function v58() local v133=0;local v134;local v135;local v136;local v137;local v138;while true do if (v133==(1 -0)) then pcall(function() v136=v37.GameTriggers.KitchenKey.Key;end);if ( not v136 or not v135 or not v136:IsA("BasePart")) then warn("No se pudo encontrar la Kitchen Key.");return;end v137=v135.CFrame;v138=v136.CFrame.p;v133=2;end if (v133==(1 + 1)) then pcall(function() for v308=1745 -(1344 + 400) ,5 do local v309=0;while true do if (v309==0) then v135.CFrame=CFrame.new(v138) + Vector3.new(405 -(255 + 150) ,1 + 0 ,0 + 0 ) ;task.wait(0 -0 );break;end end end end);v135.CFrame=v137;print("Attempted to collect Kitchen Key from distance.");break;end if (0==v133) then v134=v8.Character;if not v134 then return;end v135=v134:FindFirstChild("HumanoidRootPart");v136=nil;v133=3 -2 ;end end end local function v59(v139) if v139 then v7.Ambient=Color3.new(1740 -(404 + 1335) ,407 -(183 + 223) ,1 -0 );v7.Brightness=2;v7.ClockTime=10 + 4 ;v7.FogEnd=35988 + 64012 ;else local v205=337 -(10 + 327) ;while true do if (v205==1) then v7.ClockTime=v22;v7.FogEnd=v23;break;end if (v205==(0 + 0)) then v7.Ambient=v20;v7.Brightness=v21;v205=1;end end end end local function v60(v140,v141,v142) local v143=0;while true do if (v143==(339 -(118 + 220))) then v140:CreateSection(v141 .. " Name ESP" );for v276,v277 in pairs(getgenv().FNAF_ESP_DATA) do if ((type(v276)=="string") and (v277.T==v142) and (v276~="Foxy Curtain")) then v140:CreateToggle({Name=v276 .. " Name" ,CurrentValue=false,Flag="FNAF_Name_" .. v276:gsub(" ","") ,Callback=function(v345) v46(v276,v277,v345);end});end end break;end if (v143==0) then v140:CreateSection(v141 .. " Outline ESP" );for v278,v279 in pairs(getgenv().FNAF_ESP_DATA) do if ((type(v278)=="string") and (v279.T==v142)) then v140:CreateToggle({Name=v278 .. " Outline" ,CurrentValue=false,Flag="FNAF_Outline_" .. v278:gsub(" ","") ,Callback=function(v346) v45(v278,v279,v346);end});end end v143=1 + 0 ;end end end local function v61(v144,v145,v146,v147) local v148=449 -(108 + 341) ;local v149;local v150;local v151;while true do if (v148==0) then v149=v145;v150=v147 .. "_" .. v145:gsub(" ","") ;v148=1;end if (v148==1) then v151=v147=="Outline" ;v144:CreateToggle({Name=v145 .. " " .. v147 ,CurrentValue=false,Flag="FNAF_" .. v150 ,Callback=function(v280) getgenv().ActiveESPFlags["FNAF_" .. v150 ]=v280;local v282=(v151 and "Name") or "Outline" ;local v283="FNAF_" .. v282 .. "_" .. v149:gsub(" ","") ;local v284=getgenv().ActiveESPFlags[v283];if v280 then if v146.P_Dynamic then v50(v146,v149);end if (v146.M or v146.R) then if v151 then v45(v149,v146,true);else v46(v149,v146,true);end end else local v332=0 + 0 ;while true do if ((0 -0)==v332) then if v151 then v45(v149,v146,false);else v46(v149,v146,false);end if ( not v284 and v146.P_Dynamic) then v51(v146,v149);end break;end end end end});break;end end end local function v62(v152) v152:CreateSection("Lighting");v152:CreateToggle({Name="Fullbright",CurrentValue=false,Flag="FNAF_Fullbright_Toggle",Callback=v59});end local v63=v0:CreateWindow({Name="FNAF Co-Op Script",Icon=1493 -(711 + 782) ,LoadingTitle="FNaF Co-Op Script | Yanciel",LoadingSubtitle="by Yanciel",Theme="Default",ToggleUIKeybind="K",ConfigurationSaving={Enabled=true,FolderName=nil,FileName="FNAF_ESP_Config"},KeySystem=false});v39();local v64=v63:CreateTab("FNAF 1",0 -0 );v62(v64);v60(v64,"FNAF 1 Animatronics","FNAF1");local v65=v63:CreateTab("FNAF 2",1);v62(v65);v65:CreateSection("Camera and Movement");v65:CreateToggle({Name="Third Person Camera",CurrentValue=false,Flag="FNAF_Camera_TP",Callback=v55});v60(v65,"Withered Animatronics","Withered");v60(v65,"Toy Animatronics","Toy");v60(v65,"Other Animatronics","Other");v65:CreateSection("Key & Item Functions");v65:CreateButton({Name="Collect Kitchen Key (Tele-Reach)",Callback=v58});local v66=v63:CreateTab("FNAF 3",2);v62(v66);local v67=v35['Springtrap'];v66:CreateSection("Springtrap ESP");v61(v66,"Springtrap",v67,"Outline");v61(v66,"Springtrap",v67,"Name");local v68=v63:CreateTab("FNAF 4",472 -(270 + 199) );v62(v68);v68:CreateSection("FNAF 4 Animatronics ESP");v68:CreateToggle({Name="All Nightmares ESP",CurrentValue=false,Flag="FNAF_Consolidated_FNAF4_Toggle",Callback=v49});local v69=v63:CreateTab("FNAF 5",4);v62(v69);local v70={"Ballora","Foxy (SL)"};v69:CreateSection("Animatronics ESP (Outline)");for v153,v154 in ipairs(v70) do local v155=v35[v154];if v155 then v61(v69,v154,v155,"Outline");end end v69:CreateSection("Animatronics ESP (Name)");for v156,v157 in ipairs(v70) do local v158=1819 -(580 + 1239) ;local v159;while true do if (v158==(0 -0)) then v159=v35[v157];if v159 then v61(v69,v157,v159,"Name");end break;end end end local v71=v63:CreateTab("Misc",5);v62(v71);v71:CreateSection("Player Utilities");v71:CreateToggle({Name="Noclip",CurrentValue=false,Flag="FNAF_Noclip_Toggle",Callback=v56});v71:CreateToggle({Name="Fly",CurrentValue=false,Flag="FNAF_Fly_Toggle",Callback=v57});v71:CreateToggle({Name="Instant Prompt (No Delay)",CurrentValue=false,Flag="FNAF_InstantPrompt_Toggle",Callback=v42});v71:CreateSection("Speed Control (Anti-Cheat Bypass)");v71:CreateInput({Name="WalkSpeed (Value)",PlaceholderText=tostring(getgenv().DesiredWalkSpeed),CurrentValue=tostring(getgenv().DesiredWalkSpeed),Callback=function(v160) local v161=tonumber(v160);local v162=v8.Character;local v163=v162 and v162:FindFirstChildOfClass("Humanoid") ;if (v163 and (type(v161)=="number") and (v161>=(0.1 + 0))) then getgenv().DesiredWalkSpeed=v161;v163.WalkSpeed=v161;print("WalkSpeed deseado actualizado a: " .. v161 );else warn("Valor de velocidad no válido o demasiado bajo.");end end});v5.Stepped:Connect(function() local v164=v8.Character;local v165=v164 and v164:FindFirstChildOfClass("Humanoid") ;if (v165 and (v165.WalkSpeed~=getgenv().DesiredWalkSpeed) and not v17) then v165.WalkSpeed=getgenv().DesiredWalkSpeed;end if (getgenv().ActiveESPFlags['FNAF_Noclip_Toggle'] or v17) then if v164 then for v314,v315 in ipairs(v164:GetChildren()) do if (v315:IsA("BasePart") and (v315.CanCollide==true)) then v315.CanCollide=false;end end end end end);print("FNaF Co-Op Script | Yanciel loaded. Final version deployed with consolidated FNAF 4 ESP.");