local P=game:GetService("Players") local R=game:GetService("RunService") local U=game:GetService("UserInputService") local W=game:GetService("Workspace") local LP=P.LocalPlayer local Cam=W.CurrentCamera local S={AimbotOn=false,ESPOn=false,TeamCheck=false,VisibleOnly=false,FOV=120,Mode="AIM"} local ET={} local HT={} local isWide=true local isMin=false local uiVis=true local C={ BG=Color3.fromRGB(18,18,26),SC=Color3.fromRGB(28,28,40),SA=Color3.fromRGB(36,36,50), AO=Color3.fromRGB(52,52,68),TX=Color3.fromRGB(235,235,245),ST=Color3.fromRGB(150,150,170), OK=Color3.fromRGB(46,204,113),SK=Color3.fromRGB(60,60,80),LC=Color3.fromRGB(231,76,60) } local function co(p,r) local c=Instance.new("UICorner");c.CornerRadius=UDim.new(0,r or 6);c.Parent=p;return c end local function str(p,c,t,tr) local s=Instance.new("UIStroke");s.Color=c or C.SK;s.Thickness=t or 1;s.Transparency=tr or 0;s.Parent=p;return s end local function pd(p,t,b,l,r) local u=Instance.new("UIPadding");u.PaddingTop=UDim.new(0,t);u.PaddingBottom=UDim.new(0,b) u.PaddingLeft=UDim.new(0,l);u.PaddingRight=UDim.new(0,r);u.Parent=p;return u end local SG=Instance.new("ScreenGui") SG.Name="RayuHub";SG.ResetOnSpawn=false;SG.IgnoreGuiInset=true SG.ZIndexBehavior=Enum.ZIndexBehavior.Sibling;SG.Parent=LP:WaitForChild("PlayerGui") local FOV=Instance.new("Frame") FOV.AnchorPoint=Vector2.new(0.5,0.5);FOV.Position=UDim2.fromScale(0.5,0.5) FOV.Size=UDim2.fromOffset(S.FOV*2,S.FOV*2);FOV.BackgroundTransparency=1 FOV.Visible=false;FOV.ZIndex=1;FOV.Parent=SG co(FOV,9999);str(FOV,Color3.new(1,1,1),1.5,0.15) local function upFov() FOV.Size=UDim2.fromOffset(S.FOV*2,S.FOV*2) end -- TOGGLE MENU local TB=Instance.new("TextButton") TB.Size=UDim2.fromOffset(32,32);TB.Position=UDim2.new(0,16,0,16) TB.BackgroundColor3=C.BG;TB.BorderSizePixel=0;TB.Text="R";TB.TextColor3=C.OK TB.Font=Enum.Font.GothamBlack;TB.TextSize=15;TB.AutoButtonColor=false TB.ZIndex=10;TB.Parent=SG;co(TB,16);str(TB,C.OK,1.5,0.3) local HH=28 local TH=26 local FH=16 local WW=280 local WH=200 local TW=200 local TLH=320 local M=Instance.new("Frame") M.Position=UDim2.new(0,40,0,260);M.Size=UDim2.fromOffset(WW,WH) M.BackgroundColor3=C.BG;M.BorderSizePixel=0;M.ZIndex=5;M.Parent=SG co(M,8);str(M,C.SK,1,0.25) TB.MouseButton1Click:Connect(function() uiVis=not uiVis;M.Visible=uiVis end) local Tit=Instance.new("Frame") Tit.Size=UDim2.new(1,0,0,HH);Tit.BackgroundColor3=C.SC;Tit.BorderSizePixel=0 Tit.ZIndex=6;Tit.Parent=M;co(Tit,8) local TL=Instance.new("TextLabel") TL.Size=UDim2.new(1,-80,1,0);TL.Position=UDim2.new(0,10,0,0) TL.BackgroundTransparency=1;TL.Text="Rayu Hub";TL.TextColor3=C.TX TL.TextXAlignment=Enum.TextXAlignment.Left;TL.Font=Enum.Font.GothamBold TL.TextSize=12;TL.ZIndex=7;TL.Parent=Tit local LB=Instance.new("TextButton") LB.Size=UDim2.fromOffset(16,16);LB.Position=UDim2.new(1,-58,0.5,-8) LB.BackgroundColor3=C.AO;LB.BorderSizePixel=0;LB.Text="&";LB.TextColor3=C.TX LB.Font=Enum.Font.GothamBold;LB.TextSize=11;LB.AutoButtonColor=false;LB.ZIndex=7;LB.Parent=Tit;co(LB,3) local MinB=Instance.new("TextButton") MinB.Size=UDim2.fromOffset(16,16);MinB.Position=UDim2.new(1,-40,0.5,-8) MinB.BackgroundColor3=C.AO;MinB.BorderSizePixel=0;MinB.Text="—";MinB.TextColor3=C.TX MinB.Font=Enum.Font.GothamBold;MinB.TextSize=12;MinB.AutoButtonColor=false;MinB.ZIndex=7;MinB.Parent=Tit;co(MinB,3) local ClB=Instance.new("TextButton") ClB.Size=UDim2.fromOffset(16,16);ClB.Position=UDim2.new(1,-22,0.5,-8) ClB.BackgroundColor3=C.AO;ClB.BorderSizePixel=0;ClB.Text="Ɨ";ClB.TextColor3=C.TX ClB.Font=Enum.Font.GothamBold;ClB.TextSize=13;ClB.AutoButtonColor=false;ClB.ZIndex=7;ClB.Parent=Tit;co(ClB,3) ClB.MouseButton1Click:Connect(function() for _,v in pairs(ET) do if v then v:Destroy() end end for _,d in pairs(HT) do if d.hl then d.hl:Destroy() end if d.lt then d.lt:Destroy() end end SG:Destroy() end) local TabB=Instance.new("Frame") TabB.Position=UDim2.new(0,0,0,HH);TabB.Size=UDim2.new(1,0,0,TH) TabB.BackgroundColor3=C.SC;TabB.BorderSizePixel=0;TabB.ZIndex=6;TabB.Parent=M local tabPD=Instance.new("UIPadding") tabPD.PaddingTop=UDim.new(0,4);tabPD.PaddingBottom=UDim.new(0,4) tabPD.PaddingLeft=UDim.new(0,8);tabPD.PaddingRight=UDim.new(0,8);tabPD.Parent=TabB local tabL=Instance.new("UIListLayout") tabL.FillDirection=Enum.FillDirection.Horizontal;tabL.Padding=UDim.new(0,5) tabL.SortOrder=Enum.SortOrder.LayoutOrder;tabL.Parent=TabB local function mkTab(t,o) local b=Instance.new("TextButton") b.Size=UDim2.new(0.5,-3,1,0);b.BackgroundColor3=C.AO;b.BorderSizePixel=0 b.Text=t;b.TextColor3=C.ST;b.Font=Enum.Font.GothamBold;b.TextSize=10 b.AutoButtonColor=false;b.LayoutOrder=o;b.ZIndex=7;b.Parent=TabB;co(b,5);return b end local TabA=mkTab("šŸŽÆ Aimbot",1) local TabC=mkTab("āš™ļø Config",2) local function setTab(a,b) a.BackgroundColor3=C.OK;a.TextColor3=Color3.new(1,1,1) b.BackgroundColor3=C.AO;b.TextColor3=C.ST end local Cont=Instance.new("Frame") Cont.Position=UDim2.new(0,0,0,HH+TH);Cont.Size=UDim2.new(1,0,1,-(HH+TH+FH)) Cont.BackgroundTransparency=1;Cont.Parent=M;pd(Cont,8,8,8,8) local AC=Instance.new("Frame") AC.Size=UDim2.new(1,0,1,0);AC.BackgroundTransparency=1;AC.Parent=Cont local ACL=Instance.new("UIListLayout") ACL.FillDirection=Enum.FillDirection.Horizontal;ACL.Padding=UDim.new(0,6) ACL.SortOrder=Enum.SortOrder.LayoutOrder;ACL.Parent=AC local AL=Instance.new("Frame") AL.LayoutOrder=1;AL.Size=UDim2.new(0.5,-3,1,0);AL.BackgroundTransparency=1;AL.Parent=AC local ALL=Instance.new("UIListLayout") ALL.Padding=UDim.new(0,6);ALL.SortOrder=Enum.SortOrder.LayoutOrder;ALL.Parent=AL local AR=Instance.new("Frame") AR.LayoutOrder=2;AR.Size=UDim2.new(0.5,-3,1,0);AR.BackgroundTransparency=1;AR.Parent=AC local ARL=Instance.new("UIListLayout") ARL.Padding=UDim.new(0,6);ARL.SortOrder=Enum.SortOrder.LayoutOrder;ARL.Parent=AR local CC=Instance.new("Frame") CC.Size=UDim2.new(1,0,1,0);CC.BackgroundTransparency=1;CC.Visible=false;CC.Parent=Cont local CCL=Instance.new("UIListLayout") CCL.FillDirection=Enum.FillDirection.Horizontal;CCL.Padding=UDim.new(0,6) CCL.SortOrder=Enum.SortOrder.LayoutOrder;CCL.Parent=CC local CL=Instance.new("Frame") CL.LayoutOrder=1;CL.Size=UDim2.new(0.5,-3,1,0);CL.BackgroundTransparency=1;CL.Parent=CC local CLL=Instance.new("UIListLayout") CLL.Padding=UDim.new(0,6);CLL.SortOrder=Enum.SortOrder.LayoutOrder;CLL.Parent=CL local CR=Instance.new("Frame") CR.LayoutOrder=2;CR.Size=UDim2.new(0.5,-3,1,0);CR.BackgroundTransparency=1;CR.Parent=CC local CRL=Instance.new("UIListLayout") CRL.Padding=UDim.new(0,6);CRL.SortOrder=Enum.SortOrder.LayoutOrder;CRL.Parent=CR TabA.MouseButton1Click:Connect(function() AC.Visible=true;CC.Visible=false;setTab(TabA,TabC) end) TabC.MouseButton1Click:Connect(function() AC.Visible=false;CC.Visible=true;setTab(TabC,TabA) end) setTab(TabA,TabC) local Ft=Instance.new("Frame") Ft.Position=UDim2.new(0,0,1,-FH);Ft.Size=UDim2.new(1,0,0,FH) Ft.BackgroundTransparency=1;Ft.ZIndex=7;Ft.Parent=M local FtL=Instance.new("TextLabel") FtL.Size=UDim2.new(1,0,1,0);FtL.BackgroundTransparency=1 FtL.Text="By rayu_894";FtL.TextColor3=C.ST;FtL.Font=Enum.Font.Gotham FtL.TextSize=9;FtL.ZIndex=7;FtL.Parent=Ft local function wide() isWide=true ACL.FillDirection=Enum.FillDirection.Horizontal AL.AutomaticSize=Enum.AutomaticSize.None;AL.Size=UDim2.new(0.5,-3,1,0) AR.AutomaticSize=Enum.AutomaticSize.None;AR.Size=UDim2.new(0.5,-3,1,0) CCL.FillDirection=Enum.FillDirection.Horizontal CL.AutomaticSize=Enum.AutomaticSize.None;CL.Size=UDim2.new(0.5,-3,1,0) CR.AutomaticSize=Enum.AutomaticSize.None;CR.Size=UDim2.new(0.5,-3,1,0) if not isMin then M.Size=UDim2.fromOffset(WW,WH) end end local function tall() isWide=false ACL.FillDirection=Enum.FillDirection.Vertical AL.Size=UDim2.new(1,0,0,0);AL.AutomaticSize=Enum.AutomaticSize.Y AR.Size=UDim2.new(1,0,0,0);AR.AutomaticSize=Enum.AutomaticSize.Y CCL.FillDirection=Enum.FillDirection.Vertical CL.Size=UDim2.new(1,0,0,0);CL.AutomaticSize=Enum.AutomaticSize.Y CR.Size=UDim2.new(1,0,0,0);CR.AutomaticSize=Enum.AutomaticSize.Y if not isMin then M.Size=UDim2.fromOffset(TW,TLH) end end LB.MouseButton1Click:Connect(function() if isWide then tall() else wide() end end) MinB.MouseButton1Click:Connect(function() isMin=not isMin if isMin then AC.Visible=false;CC.Visible=false;TabB.Visible=false M.Size=UDim2.fromOffset(isWide and WW or TW,HH) else TabB.Visible=true if TabA.BackgroundColor3==C.OK then AC.Visible=true else CC.Visible=true end if isWide then M.Size=UDim2.fromOffset(WW,WH) else M.Size=UDim2.fromOffset(TW,TLH) end end end) local function sec(parent,title,order) local s=Instance.new("Frame") s.Size=UDim2.new(1,0,0,0);s.AutomaticSize=Enum.AutomaticSize.Y s.BackgroundColor3=C.SC;s.BorderSizePixel=0;s.LayoutOrder=order;s.Parent=parent co(s,6);pd(s,6,6,6,6) local l=Instance.new("UIListLayout") l.Padding=UDim.new(0,5);l.SortOrder=Enum.SortOrder.LayoutOrder;l.Parent=s local t=Instance.new("TextLabel") t.Size=UDim2.new(1,0,0,12);t.BackgroundTransparency=1;t.Text=title t.TextColor3=C.ST;t.TextXAlignment=Enum.TextXAlignment.Left t.Font=Enum.Font.GothamBold;t.TextSize=9;t.LayoutOrder=0;t.Parent=s return s end local function tog(parent,text,order) local b=Instance.new("TextButton") b.Size=UDim2.new(1,0,0,24);b.BackgroundColor3=C.AO;b.BorderSizePixel=0 b.Text="";b.AutoButtonColor=false;b.LayoutOrder=order;b.Parent=parent;co(b,5) local l=Instance.new("TextLabel") l.Size=UDim2.new(1,-45,1,0);l.Position=UDim2.new(0,10,0,0);l.BackgroundTransparency=1 l.Text=text;l.TextColor3=C.TX;l.TextXAlignment=Enum.TextXAlignment.Left l.Font=Enum.Font.GothamMedium;l.TextSize=10;l.Parent=b local st=Instance.new("TextLabel") st.Size=UDim2.new(0,30,1,0);st.Position=UDim2.new(1,-38,0,0);st.BackgroundTransparency=1 st.Text="OFF";st.TextColor3=C.ST;st.TextXAlignment=Enum.TextXAlignment.Right st.Font=Enum.Font.GothamBold;st.TextSize=9;st.Parent=b local function r(on) if on then b.BackgroundColor3=C.OK;st.Text="ON";st.TextColor3=Color3.new(1,1,1) else b.BackgroundColor3=C.AO;st.Text="OFF";st.TextColor3=C.ST end end return b,r,l end local function txt(parent,init,order) local b=Instance.new("TextBox") b.Size=UDim2.new(1,0,0,24);b.BackgroundColor3=C.SA;b.BorderSizePixel=0 b.Text=tostring(init);b.PlaceholderText="120";b.TextColor3=C.TX b.PlaceholderColor3=C.ST;b.Font=Enum.Font.GothamMedium;b.TextSize=10 b.ClearTextOnFocus=false;b.LayoutOrder=order;b.Parent=parent;co(b,5);str(b,C.SK,1,0.4) return b end local function vis(p) local cp=Cam.CFrame.Position local d=(p.Position-cp).Unit local di=(p.Position-cp).Magnitude local rp=RaycastParams.new() rp.FilterDescendantsInstances={LP.Character,Cam} rp.FilterType=Enum.RaycastFilterType.Exclude rp.IgnoreWater=true local r=W:Raycast(cp,d*di,rp) return not r or r.Instance:IsDescendantOf(p.Parent) end local function mkHL(pl) if HT[pl.UserId] then local d=HT[pl.UserId] if d.hl and d.hl.Parent~=pl.Character then d.hl.Parent=pl.Character end if d.lt and d.lt.Parent~=pl.Character then d.lt.Parent=pl.Character end return end local red=Color3.fromRGB(255,40,40) local h=Instance.new("Highlight") h.Name="RayuHL" h.DepthMode=Enum.HighlightDepthMode.AlwaysOnTop h.FillColor=red h.OutlineColor=red h.FillTransparency=0.55 h.OutlineTransparency=0 h.Adornee=pl.Character h.Parent=pl.Character local root=pl.Character:FindFirstChild("HumanoidRootPart") or pl.Character local lt=Instance.new("PointLight") lt.Name="RayuLight" lt.Color=red lt.Brightness=3 lt.Range=14 lt.Shadows=true lt.Parent=root HT[pl.UserId]={hl=h, lt=lt} end local function rmHL(pl) if HT[pl.UserId] then if HT[pl.UserId].hl then HT[pl.UserId].hl:Destroy() end if HT[pl.UserId].lt then HT[pl.UserId].lt:Destroy() end HT[pl.UserId]=nil end end local modeS=sec(AL,"MODO",1) local modeB=Instance.new("TextButton") modeB.Size=UDim2.new(1,0,0,24);modeB.BackgroundColor3=C.OK;modeB.BorderSizePixel=0 modeB.Text="";modeB.AutoButtonColor=false;modeB.LayoutOrder=1;modeB.Parent=modeS;co(modeB,5) local modeL=Instance.new("TextLabel") modeL.Size=UDim2.new(1,-45,1,0);modeL.Position=UDim2.new(0,10,0,0);modeL.BackgroundTransparency=1 modeL.Text="Mode: AIM";modeL.TextColor3=C.TX;modeL.TextXAlignment=Enum.TextXAlignment.Left modeL.Font=Enum.Font.GothamMedium;modeL.TextSize=10;modeL.Parent=modeB local modeSt=Instance.new("TextLabel") modeSt.Size=UDim2.new(0,30,1,0);modeSt.Position=UDim2.new(1,-38,0,0);modeSt.BackgroundTransparency=1 modeSt.Text="AIM";modeSt.TextColor3=Color3.new(1,1,1);modeSt.TextXAlignment=Enum.TextXAlignment.Right modeSt.Font=Enum.Font.GothamBold;modeSt.TextSize=9;modeSt.Parent=modeB local aS=sec(AL,"AIMBOT",2) local aB,aR,aL=tog(aS,"Aimbot",1) aB.MouseButton1Click:Connect(function() S.AimbotOn=not S.AimbotOn FOV.Visible=S.AimbotOn aR(S.AimbotOn) end) modeB.MouseButton1Click:Connect(function() if S.Mode=="AIM" then S.Mode="LOCK" modeL.Text="Mode: LOCK";modeSt.Text="LOCK";modeB.BackgroundColor3=C.LC aL.Text="Aimlock" local sl=aS:FindFirstChildOfClass("TextLabel") if sl then sl.Text="AIMLOCK" end else S.Mode="AIM" modeL.Text="Mode: AIM";modeSt.Text="AIM";modeB.BackgroundColor3=C.OK aL.Text="Aimbot" local sl=aS:FindFirstChildOfClass("TextLabel") if sl then sl.Text="AIMBOT" end end end) local vB,vR=tog(aS,"Visible Only",2) vB.MouseButton1Click:Connect(function() S.VisibleOnly=not S.VisibleOnly vR(S.VisibleOnly) end) local eS=sec(AR,"PLAYER ESP",1) local eB,eR=tog(eS,"ESP Players",1) eB.MouseButton1Click:Connect(function() S.ESPOn=not S.ESPOn eR(S.ESPOn) if not S.ESPOn then for _,v in pairs(ET) do if v then v:Destroy() end end ET={} for _,d in pairs(HT) do if d.hl then d.hl:Destroy() end if d.lt then d.lt:Destroy() end end HT={} end end) local fS=sec(CL,"FOV RANGE",1) local fB=txt(fS,S.FOV,1) fB.FocusLost:Connect(function() local n=tonumber(fB.Text) if n and n>=10 and n<=1000 then S.FOV=math.floor(n);fB.Text=tostring(S.FOV);upFov() else fB.Text=tostring(S.FOV) end end) local tS=sec(CL,"TEAM CHECK",2) local tB,tR=tog(tS,"Check Team",1) tB.MouseButton1Click:Connect(function() S.TeamCheck=not S.TeamCheck tR(S.TeamCheck) end) local iS=sec(CR,"INFO",1) local iL=Instance.new("TextLabel") iL.Size=UDim2.new(1,0,0,32);iL.BackgroundTransparency=1 iL.Text="Rayu Hub v2V\nBy rayu_894";iL.TextColor3=C.ST iL.TextXAlignment=Enum.TextXAlignment.Left;iL.Font=Enum.Font.Gotham iL.TextSize=9;iL.TextWrapped=true;iL.LayoutOrder=1;iL.Parent=iS local rS=sec(CR,"RESET",2) local rB=Instance.new("TextButton") rB.Size=UDim2.new(1,0,0,24);rB.BackgroundColor3=C.AO;rB.BorderSizePixel=0 rB.Text="Reset FOV";rB.TextColor3=C.TX;rB.Font=Enum.Font.GothamMedium rB.TextSize=10;rB.AutoButtonColor=false;rB.LayoutOrder=1;rB.Parent=rS;co(rB,5) rB.MouseButton1Click:Connect(function() S.FOV=120;fB.Text="120";upFov() end) local dg,ds,sp Tit.InputBegan:Connect(function(i) if i.UserInputType==Enum.UserInputType.MouseButton1 or i.UserInputType==Enum.UserInputType.Touch then dg=true;ds=i.Position;sp=M.Position end end) Tit.InputEnded:Connect(function() dg=false end) U.InputChanged:Connect(function(i) if not dg then return end if i.UserInputType==Enum.UserInputType.MouseMovement or i.UserInputType==Enum.UserInputType.Touch then local d=i.Position-ds M.Position=UDim2.new(sp.X.Scale,sp.X.Offset+d.X,sp.Y.Scale,sp.Y.Offset+d.Y) end end) local function tHead(p) if p==LP then return nil end local ch=p.Character if not ch then return nil end local h=ch:FindFirstChildOfClass("Humanoid") if not h or h.Health<=0 then return nil end local hd=ch:FindFirstChild("Head") if not hd then return nil end if S.TeamCheck and p.Team~=nil and p.Team==LP.Team then return nil end if S.VisibleOnly and not vis(hd) then return nil end return hd end local function fT() local v=Cam.ViewportSize local c=Vector2.new(v.X/2,v.Y/2) local cl,cd=nil,S.FOV for _,p in ipairs(P:GetPlayers()) do local h=tHead(p) if h then local sc,on=Cam:WorldToViewportPoint(h.Position) if on and sc.Z>0 then local d=(Vector2.new(sc.X,sc.Y)-c).Magnitude if d<=cd then cl=h;cd=d end end end end return cl end R.RenderStepped:Connect(function() if S.AimbotOn then local t=fT() if t then Cam.CFrame=CFrame.new(Cam.CFrame.Position,t.Position) end end if not S.ESPOn then for uid,d in pairs(HT) do if d.hl then d.hl:Destroy() end if d.lt then d.lt:Destroy() end end HT={} return end for _,p in pairs(P:GetPlayers()) do if p~=LP and p.Character then local ro=p.Character:FindFirstChild("HumanoidRootPart") local hu=p.Character:FindFirstChildOfClass("Humanoid") if ro and hu and hu.Health>0 then if S.TeamCheck and p.Team~=nil and p.Team==LP.Team then if ET[p.UserId] then ET[p.UserId]:Destroy();ET[p.UserId]=nil end rmHL(p) else mkHL(p) if not ET[p.UserId] then local bl=Instance.new("BillboardGui") bl.AlwaysOnTop=true bl.Size=UDim2.new(0,180,0,36) bl.StudsOffset=Vector3.new(0,3,0) bl.Adornee=ro bl.Parent=SG local tx=Instance.new("TextLabel") tx.BackgroundTransparency=1 tx.Size=UDim2.new(1,0,1,0) tx.Font=Enum.Font.GothamBold tx.TextColor3=Color3.fromRGB(255,85,85) tx.TextStrokeTransparency=0 tx.TextStrokeColor3=Color3.new(0,0,0) tx.TextSize=11 tx.TextWrapped=true tx.Parent=bl ET[p.UserId]=bl end local bl=ET[p.UserId] if bl and bl.Parent then local inf=bl:FindFirstChildWhichIsA("TextLabel") if inf then local lr=LP.Character and LP.Character:FindFirstChild("HumanoidRootPart") local di=lr and math.floor((ro.Position-lr.Position).Magnitude) or 0 inf.Text="šŸ‘¤ "..p.Name.."\nšŸ’– "..math.floor(hu.Health).." HP | šŸ“ "..di.."m" end end end else if ET[p.UserId] then ET[p.UserId]:Destroy();ET[p.UserId]=nil end rmHL(p) end end end end) print("āœ… Rayu Hub v2V Loaded! | By rayu_894")