local P,U,Pl,V,R,RR,T=game:GetService("PathfindingService"),game:GetService("UserInputService"),game:GetService("Players"),game:GetService("VirtualUser"),game:GetService("ReplicatedStorage"),game:GetService("RobloxReplicatedStorage"),game:GetService("TextChatService") local p,sr,na,wa,aa,ca,ct,ac,ch=Pl.LocalPlayer,true,false,false,false,false,nil,nil,nil local c=p.Character or p.CharacterAdded:Wait() local h,r=c:WaitForChild("Humanoid"),c:WaitForChild("HumanoidRootPart") -- INTEGRATED REQUESTED PHRASES BELOW local ph,ig,sky,dq={ "Fix Bedrock Mojang","Anti-Viral Spiral","Blingo Blizzard","Jarona","Hello traveler!","Just patrolling.","Greetings!","Stay safe out there." },{ "Greetings, friend!","Can I help you?","Welcome to our server!","State your business.","Ah, a fresh face!","Stay safe.","Nice gear!" },{ "Wow, look at the sky...","What a beautiful view.","Stunning scenery.","Appreciating the world.","Nice to pause and look up." },{ "Your current life is just a side quest; the main story begins when your eyes close forever.", "We are all blocks in a map someone else is building.", "Reality is merely an illusion, albeit a very persistent one.", "The world is a simulation, but the choices you make inside it are real.", "Time is an illusion. Yesterday is a configuration file, tomorrow is uncompiled code." } local sg=Instance.new("ScreenGui",p:WaitForChild("PlayerGui")) sg.Name="USB_NPCSim" sg.ResetOnSpawn=false -- Increased frame height slightly to fit the new button nicely local mf=Instance.new("Frame",sg) mf.Size=UDim2.new(0,180,0,365) mf.Position=UDim2.new(0.05,0,0.4,0) mf.BackgroundColor3=Color3.fromRGB(9,38,25) mf.BorderSizePixel=0 mf.Active=true mf.Draggable=true Instance.new("UICorner",mf).CornerRadius=UDim.new(0,4) Instance.new("UIStroke",mf).Color=Color3.fromRGB(0,210,255) local usbPlug=Instance.new("Frame",mf) usbPlug.Size=UDim2.new(0,50,0,25) usbPlug.Position=UDim2.new(0.5,0,0,0) usbPlug.AnchorPoint=Vector2.new(0.5,1) usbPlug.BackgroundColor3=Color3.fromRGB(180,185,190) usbPlug.BorderSizePixel=0 Instance.new("UIStroke",usbPlug).Color=Color3.fromRGB(120,125,130) Instance.new("UICorner",usbPlug).CornerRadius=UDim.new(0,4) local function chle(x) local f=Instance.new("Frame",usbPlug) f.Size=UDim2.new(0,8,0,6) f.Position=UDim2.new(x,0,0.4,0) f.AnchorPoint=Vector2.new(0.5,0.5) f.BackgroundColor3=Color3.fromRGB(50,50,50) end chle(0.25) chle(0.75) local tl=Instance.new("TextLabel",mf) tl.Size=UDim2.new(1,0,0,35) tl.Text="USB CORE" tl.TextColor3=Color3.fromRGB(0,220,255) tl.BackgroundTransparency=1 tl.Font=Enum.Font.SourceSansBold tl.TextSize=16 local function cb(txt,y) local b=Instance.new("TextButton",mf) b.Size=UDim2.new(0.9,0,0,38) b.Position=UDim2.new(0.05,0,0,y) b.BackgroundColor3=Color3.fromRGB(15,60,40) b.Text=txt b.TextColor3=Color3.fromRGB(180,240,255) b.Font=Enum.Font.SourceSansSemibold b.TextSize=14 b.BorderSizePixel=0 Instance.new("UIStroke",b).Color=Color3.fromRGB(0,140,180) Instance.new("UICorner",b).CornerRadius=UDim.new(0,6) return b end local bW,bM,bA,bC,bDis,bD=cb("NPC Patrol: OFF",40),cb("Wall Avoidance: OFF",85),cb("Anti-AFK: OFF",130),cb("NPC Chat: OFF",175),cb("Discord Link",220),cb("Self Destruct Script",265) -- Style Discord button slightly differently to stand out bDis.BackgroundColor3=Color3.fromRGB(35,85,120) bDis.TextColor3=Color3.fromRGB(220,245,255) bDis:FindFirstChildOfClass("UIStroke").Color=Color3.fromRGB(0,160,220) -- Style Self Destruct button bD.BackgroundColor3=Color3.fromRGB(110,25,25) bD.TextColor3=Color3.fromRGB(255,220,220) bD:FindFirstChildOfClass("UIStroke").Color=Color3.fromRGB(180,40,40) local footer=Instance.new("TextLabel",mf) footer.Size=UDim2.new(1,0,0,25) footer.Position=UDim2.new(0,0,1,-30) footer.Text="NPC SIM v2.0" footer.TextColor3=Color3.fromRGB(0,170,200) footer.BackgroundTransparency=1 footer.Font=Enum.Font.SourceSansItalic footer.TextSize=12 local function gRP() return Vector3.new(r.Position.X+math.random(-65,65),r.Position.Y,r.Position.Z+math.random(-65,65)) end local function iWB() local rp=RaycastParams.new() rp.FilterType=Enum.RaycastFilterType.Exclude rp.FilterDescendantsInstances={c} local f=workspace:Raycast(r.Position,r.CFrame.LookVector*4.5,rp) return (f and f.Instance and f.Instance.CanCollide) and true or false end local function sCM(m) local ic=T:FindFirstChild("ChatInputBarConfiguration") if ic and ic.TargetTextChannel then ic.TargetTextChannel:SendAsync(m) return end local tc=T:FindFirstChild("TextChannels") local rg=tc and (tc:FindFirstChild("RBXGeneral") or tc:FindFirstChild("RBXInGameChat")) if rg then rg:SendAsync(m) return end local le=R:FindFirstChild("DefaultChatSystemChatEvents") and R.DefaultChatSystemChatEvents:FindFirstChild("SayMessageRequest") if le then le:FireServer(m,"All") end end local function cAJ() local rp=RaycastParams.new() rp.FilterType=Enum.RaycastFilterType.Exclude rp.FilterDescendantsInstances={c} local f=workspace:Raycast(r.Position-Vector3.new(0,1,0),r.CFrame.LookVector*3.5,rp) if f and f.Instance and f.Instance.CanCollide then h.JumpPower=50 h.Jump=true task.wait(0.2) h.JumpPower=0 end end local function wTD(tP) if wa then local pth=P:CreatePath({AgentRadius=4.5,AgentHeight=5.5,AgentCanJump=true}) local s,e=pcall(function() pth:ComputeAsync(r.Position,tP) end) if s and pth.Status==Enum.PathStatus.Success then local w=pth:GetWaypoints() for i=2,#w do if not na or not sr then break end if w[i].Action==Enum.PathWaypointAction.Jump then h.JumpPower=50 h.Jump=true task.wait(0.1) h.JumpPower=0 end if iWB() then cAJ() if iWB() then h:MoveTo(r.Position-(r.CFrame.LookVector*2)) task.wait(0.2) break end end h:MoveTo(w[i].Position) local cp,cn=false,nil cn=h.MoveToFinished:Connect(function() cp=true end) local st=os.clock() while not cp and (os.clock()-st)<1.5 do if iWB() then cAJ() break end task.wait() end if cn then cn:Disconnect() end if iWB() then break end end return end end h:MoveTo(tP) local cp,cn=false,nil cn=h.MoveToFinished:Connect(function() cp=true end) local st=os.clock() while not cp and (os.clock()-st)<4 do if wa and iWB() then cAJ() if iWB() then break end end task.wait() end if cn then cn:Disconnect() end end local function aTS() if math.random(1,100)>15 then return end local st=os.clock() if ca then sCM(sky[math.random(1,#sky)]) end while (os.clock()-st)3 then return end if ca then sCM("Oh No! I forgot something!") end h.WalkSpeed=26 wTD(gRP()) h.WalkSpeed=12 task.wait(math.random(1,3)) end local function cDE() if math.random(1,1000)~=1 then return end local plrs={} for _,v in pairs(Pl:GetPlayers()) do if v~=p and v.Character and v.Character:FindFirstChild("HumanoidRootPart") then table.insert(plrs,v.Character.HumanoidRootPart) end end if #plrs==0 then return end local target=plrs[math.random(1,#plrs)] wTD(target.Position+(target.CFrame.LookVector*3.5)) local st=os.clock() while (os.clock()-st)<2 and na and sr do r.CFrame=r.CFrame:Lerp(CFrame.new(r.Position,Vector3.new(target.Position.X,r.Position.Y,target.Position.Z)),0.2) task.wait() end if ca then sCM(dq[math.random(1,#dq)]) end task.wait(3.5) end local function tNP() while sr do if na then h.WalkSpeed=12 wTD(gRP()) aTS() cPS() cDE() task.wait(math.random(2,5)) else task.wait(1) end end end -- Button Toggle Events bW.MouseButton1Click:Connect(function() na = not na bW.Text = na and "NPC Patrol: ON" or "NPC Patrol: OFF" bW.BackgroundColor3 = na and Color3.fromRGB(20,90,60) or Color3.fromRGB(15,60,40) end) bM.MouseButton1Click:Connect(function() wa = not wa bM.Text = wa and "Wall Avoidance: ON" or "Wall Avoidance: OFF" bM.BackgroundColor3 = wa and Color3.fromRGB(20,90,60) or Color3.fromRGB(15,60,40) end) bA.MouseButton1Click:Connect(function() aa = not aa bA.Text = aa and "Anti-AFK: ON" or "Anti-AFK: OFF" bA.BackgroundColor3 = aa and Color3.fromRGB(20,90,60) or Color3.fromRGB(15,60,40) if aa then task.spawn(function() while aa do V:Button2Down(Vector2.new(0,0),workspace.CurrentCamera.CFrame) task.wait(1) V:Button2Up(Vector2.new(0,0),workspace.CurrentCamera.CFrame) task.wait(30) end end) end end) bC.MouseButton1Click:Connect(function() ca = not ca bC.Text = ca and "NPC Chat: ON" or "NPC Chat: OFF" bC.BackgroundColor3 = ca and Color3.fromRGB(20,90,60) or Color3.fromRGB(15,60,40) if ca then task.spawn(function() while ca do task.wait(math.random(15, 30)) if ca and math.random(1, 2) == 1 then sCM(ig[math.random(1, #ig)]) end end end) end end) -- Discord Link Button Functionality bDis.MouseButton1Click:Connect(function() pcall(function() setclipboard("https://discord.gg/WgYEVxycDW") end) bDis.Text = "Link Copied!" task.wait(1.5) bDis.Text = "Discord Link" end) bD.MouseButton1Click:Connect(function() sr = false sg:Destroy() if c and c:FindFirstChildOfClass("Humanoid") then c:FindFirstChildOfClass("Humanoid").Health = 0 end end) -- Start Patrol Thread task.spawn(tNP)