local Players,UIS,TweenService,VIM,VirtualUser,GuiService,RS=game:GetService("Players"),game:GetService("UserInputService"),game:GetService("TweenService"),game:GetService("VirtualInputManager"),game:GetService("VirtualUser"),game:GetService("GuiService"),game:GetService("ReplicatedStorage") local Player,IMAGE_ID=Players.LocalPlayer,"rbxassetid://76668792745652" local Parent=(gethui and gethui()) or Player:WaitForChild("PlayerGui") local Old=Parent:FindFirstChild("YNM_HUB") if Old then Old:Destroy() end local GUI=Instance.new("ScreenGui") GUI.Name,GUI.ResetOnSpawn,GUI.ZIndexBehavior,GUI.Parent="YNM_HUB",false,Enum.ZIndexBehavior.Sibling,Parent local function Create(c,p,par) local o=Instance.new(c) for k,v in pairs(p) do o[k]=v end o.Parent=par return o end local Main=Create("Frame",{Size=UDim2.fromOffset(470,300),Position=UDim2.new(0.5,-235,0.5,-150),BackgroundColor3=Color3.fromRGB(10,10,10),BorderSizePixel=0,ClipsDescendants=true},GUI) Create("UICorner",{CornerRadius=UDim.new(0,10)},Main) Create("UIStroke",{Color=Color3.fromRGB(235,235,235),Thickness=1.5},Main) Create("ImageLabel",{Size=UDim2.fromScale(1,1),BackgroundTransparency=1,Image=IMAGE_ID,ImageTransparency=0.25,ScaleType=Enum.ScaleType.Fit,ZIndex=1},Main) local Overlay=Create("Frame",{Size=UDim2.fromScale(1,1),BackgroundColor3=Color3.new(),BackgroundTransparency=0.3,BorderSizePixel=0,ZIndex=2},Main) local Header=Create("Frame",{Size=UDim2.new(1,0,0,48),BackgroundColor3=Color3.fromRGB(5,5,5),BackgroundTransparency=0.1,BorderSizePixel=0,ZIndex=3},Main) Create("TextLabel",{Size=UDim2.new(1,-100,1,0),Position=UDim2.fromOffset(16,0),BackgroundTransparency=1,Text="YNM HUB",TextColor3=Color3.new(1,1,1),TextSize=23,Font=Enum.Font.GothamBold,TextXAlignment=Enum.TextXAlignment.Left,ZIndex=4},Header) local Close=Create("TextButton",{Size=UDim2.fromOffset(34,34),Position=UDim2.new(1,-42,0,7),BackgroundColor3=Color3.fromRGB(35,35,35),Text="×",TextColor3=Color3.new(1,1,1),TextSize=25,Font=Enum.Font.GothamBold,ZIndex=5},Header) Create("UICorner",{CornerRadius=UDim.new(0,7)},Close) local Sidebar=Create("Frame",{Size=UDim2.new(0,135,1,-58),Position=UDim2.fromOffset(10,53),BackgroundColor3=Color3.fromRGB(8,8,8),BackgroundTransparency=0.12,BorderSizePixel=0,ZIndex=3},Main) Create("UICorner",{CornerRadius=UDim.new(0,8)},Sidebar) local Content=Create("Frame",{Size=UDim2.new(1,-165,1,-68),Position=UDim2.fromOffset(155,58),BackgroundTransparency=1,ZIndex=3},Main) local function MakeTab(t,y) local b=Create("TextButton",{Size=UDim2.new(1,-12,0,42),Position=UDim2.fromOffset(6,y),BackgroundColor3=Color3.fromRGB(30,30,30),Text=t,TextColor3=Color3.new(1,1,1),TextSize=13,Font=Enum.Font.GothamBold,ZIndex=4},Sidebar) Create("UICorner",{CornerRadius=UDim.new(0,6)},b) return b end local FarmTab,ConfigTab=MakeTab("AUTO FARM",12),MakeTab("CONFIGURAÇÕES",62) local FarmPage=Create("ScrollingFrame",{Size=UDim2.fromScale(1,1),BackgroundTransparency=1,ScrollBarThickness=4,CanvasSize=UDim2.fromOffset(0,0),AutomaticCanvasSize=Enum.AutomaticSize.Y,Visible=true,ZIndex=4},Content) Create("UIListLayout",{Padding=UDim.new(0,8),SortOrder=Enum.SortOrder.LayoutOrder},FarmPage) local ConfigPage=Create("ScrollingFrame",{Size=UDim2.fromScale(1,1),BackgroundColor3=Color3.fromRGB(12,12,12),BackgroundTransparency=0.15,BorderSizePixel=0,ScrollBarThickness=4,CanvasSize=UDim2.fromOffset(0,0),AutomaticCanvasSize=Enum.AutomaticSize.Y,Visible=false,ZIndex=4},Content) Create("UICorner",{CornerRadius=UDim.new(0,8)},ConfigPage) Create("UIListLayout",{Padding=UDim.new(0,8),SortOrder=Enum.SortOrder.LayoutOrder},ConfigPage) local function MakeToggle(p,l,o,d,cb) local s=d or false local r=Create("Frame",{Size=UDim2.new(1,-6,0,40),BackgroundColor3=Color3.fromRGB(18,18,18),BackgroundTransparency=0.2,BorderSizePixel=0,LayoutOrder=o,ZIndex=5},p) Create("UICorner",{CornerRadius=UDim.new(0,7)},r) Create("UIStroke",{Color=Color3.fromRGB(70,70,70),Thickness=1},r) Create("TextLabel",{Size=UDim2.new(1,-72,1,0),Position=UDim2.fromOffset(12,0),BackgroundTransparency=1,Text=l,TextColor3=Color3.new(1,1,1),TextSize=13,Font=Enum.Font.GothamBold,TextXAlignment=Enum.TextXAlignment.Left,ZIndex=6},r) local sb=Create("TextButton",{Size=UDim2.fromOffset(48,24),Position=UDim2.new(1,-58,0.5,-12),BackgroundColor3=s and Color3.fromRGB(235,235,235) or Color3.fromRGB(45,45,45),Text="",BorderSizePixel=0,ZIndex=6},r) Create("UICorner",{CornerRadius=UDim.new(1,0)},sb) local dot=Create("Frame",{Size=UDim2.fromOffset(18,18),Position=s and UDim2.new(1,-21,0.5,-9) or UDim2.fromOffset(3,3),BackgroundColor3=s and Color3.fromRGB(10,10,10) or Color3.fromRGB(220,220,220),BorderSizePixel=0,ZIndex=7},sb) Create("UICorner",{CornerRadius=UDim.new(1,0)},dot) local function ref() TweenService:Create(sb,TweenInfo.new(0.14),{BackgroundColor3=s and Color3.fromRGB(235,235,235) or Color3.fromRGB(45,45,45)}):Play() TweenService:Create(dot,TweenInfo.new(0.14),{Position=s and UDim2.new(1,-21,0.5,-9) or UDim2.fromOffset(3,3),BackgroundColor3=s and Color3.fromRGB(10,10,10) or Color3.fromRGB(220,220,220)}):Play() end sb.MouseButton1Click:Connect(function() s=not s ref() if cb then cb(s) end end) return function(nv) s=not not nv ref() if cb then cb(s) end end end local TC=Create("Frame",{Size=UDim2.new(1,-6,0,126),BackgroundColor3=Color3.fromRGB(18,18,18),BackgroundTransparency=0.2,BorderSizePixel=0,LayoutOrder=1,ZIndex=5},ConfigPage) Create("UICorner",{CornerRadius=UDim.new(0,7)},TC) Create("UIStroke",{Color=Color3.fromRGB(70,70,70),Thickness=1},TC) Create("TextLabel",{Size=UDim2.new(1,-20,0,28),Position=UDim2.fromOffset(10,8),BackgroundTransparency=1,Text="TRANSPARÊNCIA DA INTERFACE",TextColor3=Color3.new(1,1,1),TextSize=13,Font=Enum.Font.GothamBold,TextXAlignment=Enum.TextXAlignment.Left,ZIndex=6},TC) local VL=Create("TextLabel",{Size=UDim2.new(1,-20,0,20),Position=UDim2.fromOffset(10,36),BackgroundTransparency=1,Text="30%",TextColor3=Color3.new(1,1,1),TextSize=12,Font=Enum.Font.Gotham,TextXAlignment=Enum.TextXAlignment.Left,ZIndex=6},TC) local SB=Create("Frame",{Size=UDim2.new(1,-26,0,8),Position=UDim2.fromOffset(13,76),BackgroundColor3=Color3.fromRGB(65,65,65),BorderSizePixel=0,ZIndex=6},TC) Create("UICorner",{CornerRadius=UDim.new(1,0)},SB) local SF=Create("Frame",{Size=UDim2.new(0.3,0,1,0),BackgroundColor3=Color3.fromRGB(235,235,235),BorderSizePixel=0,ZIndex=7},SB) Create("UICorner",{CornerRadius=UDim.new(1,0)},SF) local Knob=Create("TextButton",{Size=UDim2.fromOffset(20,20),Position=UDim2.new(0.3,-10,0.5,-10),BackgroundColor3=Color3.new(1,1,1),Text="",ZIndex=8},SB) Create("UICorner",{CornerRadius=UDim.new(1,0)},Knob) local dragS=false local function SetTransparency(v) v=math.clamp(v,0,0.9) Main.BackgroundTransparency=v Header.BackgroundTransparency=math.min(v,0.3) Sidebar.BackgroundTransparency=math.min(v,0.5) ConfigPage.BackgroundTransparency=math.min(v,0.5) Overlay.BackgroundTransparency=math.clamp(0.3+v*0.65,0.3,0.88) VL.Text=math.floor(v*100).."%" SF.Size,Knob.Position=UDim2.new(v/0.9,0,1,0),UDim2.new(v/0.9,-10,0.5,-10) end local function UpdS(inp) SetTransparency(math.clamp((inp.Position.X-SB.AbsolutePosition.X)/SB.AbsoluteSize.X,0,1)*0.9) end Knob.InputBegan:Connect(function(i) if i.UserInputType==Enum.UserInputType.MouseButton1 or i.UserInputType==Enum.UserInputType.Touch then dragS=true end end) SB.InputBegan:Connect(function(i) if i.UserInputType==Enum.UserInputType.MouseButton1 or i.UserInputType==Enum.UserInputType.Touch then dragS=true UpdS(i) end end) UIS.InputChanged:Connect(function(i) if dragS and (i.UserInputType==Enum.UserInputType.MouseMovement or i.UserInputType==Enum.UserInputType.Touch) then UpdS(i) end end) UIS.InputEnded:Connect(function(i) if i.UserInputType==Enum.UserInputType.MouseButton1 or i.UserInputType==Enum.UserInputType.Touch then dragS=false end end) local autoTapBonus=false MakeToggle(FarmPage,"Tap Bonus",1,false,function(V) autoTapBonus=V task.spawn(function() local r=RS:WaitForChild("Remotes"):WaitForChild("Training_TapBonus") while autoTapBonus do if r:IsA("RemoteEvent") then r:FireServer(6) elseif r:IsA("RemoteFunction") then pcall(function() r:InvokeServer(6) end) end task.wait(0.05) end end) end) local autoClickBoost=false MakeToggle(FarmPage,"Auto Boost",2,false,function(V) autoClickBoost=V task.spawn(function() local gui=Player:WaitForChild("PlayerGui") local function vis(o) local c=o while c and c~=gui do if c:IsA("GuiObject") and not c.Visible then return false end c=c.Parent end return true end local function clk(o) if type(firesignal)=="function" then pcall(function() firesignal(o.MouseButton1Click) firesignal(o.MouseButton1Down) firesignal(o.MouseButton1Up) firesignal(o.Activated) end) end local ins,x,y=GuiService:GetGuiInset(),o.AbsolutePosition.X+(o.AbsoluteSize.X/2),o.AbsolutePosition.Y+(o.AbsoluteSize.Y/2)+GuiService:GetGuiInset().Y VIM:SendMouseButtonEvent(x,y,0,true,game,1) task.wait(0.03) VIM:SendMouseButtonEvent(x,y,0,false,game,1) end local function mB(str) local s=string.lower(str or "") return string.find(s,"boost",1,true) or string.find(s,"2x",1,true) or string.find(s,"x2",1,true) or string.find(s,"bonus",1,true) end while autoClickBoost do for _,v in ipairs(gui:GetDescendants()) do if not autoClickBoost then break end if (v:IsA("GuiButton") or v:IsA("ImageButton") or v:IsA("TextButton")) and vis(v) and v.AbsoluteSize.X>0 and v.AbsoluteSize.Y>0 then local m=mB(v.Name) or (v:IsA("TextButton") and mB(v.Text)) if not m then for _,d in ipairs(v:GetDescendants()) do if (d:IsA("TextLabel") or d:IsA("TextButton")) and (mB(d.Text) or mB(d.Name)) then m=true break elseif (d:IsA("ImageLabel") or d:IsA("ImageButton")) and mB(d.Name) then m=true break end end end if m then clk(v) task.wait(0.15) end end end task.wait(0.15) end end) end) local autoLaunchPerfect=false MakeToggle(FarmPage,"Auto Lançar Perfeito",3,false,function(V) autoLaunchPerfect=V task.spawn(function() local rf=RS:WaitForChild("Remotes") local ts,tr=rf:WaitForChild("Throw_Start"),rf:WaitForChild("Throw_Resolve") local function keepCam() pcall(function() if Player.CameraMode==Enum.CameraMode.LockFirstPerson then Player.CameraMode=Enum.CameraMode.Classic end if Player.CameraMaxZoomDistance<12 then Player.CameraMaxZoomDistance=128 end if Player.CameraMinZoomDistance>8 then Player.CameraMinZoomDistance=0.5 end end) end local function cycle() keepCam() pcall(function() if ts:IsA("RemoteFunction") then ts:InvokeServer() elseif ts:IsA("RemoteEvent") then ts:FireServer() end end) pcall(function() local a={0.9515681968383433} if tr:IsA("RemoteFunction") then tr:InvokeServer(unpack(a)) elseif tr:IsA("RemoteEvent") then tr:FireServer(unpack(a)) end end) keepCam() end while autoLaunchPerfect do for _=1,5 do if not autoLaunchPerfect then break end cycle() task.wait(0.05) end task.wait(0.12) end end) end) local sellAllEnabled,equipBestEnabled,petLoopRunning=false,false,false local function runPetWorkflow() if petLoopRunning then return end petLoopRunning=true task.spawn(function() local rf=RS:WaitForChild("Remotes") local eq,sl=rf:WaitForChild("Plot_EquipBest"),rf:WaitForChild("Plot_SellAll") while sellAllEnabled or equipBestEnabled do if equipBestEnabled and sellAllEnabled then pcall(function() eq:InvokeServer() end) task.wait(0.08) if not (sellAllEnabled or equipBestEnabled) then break end pcall(function() sl:InvokeServer() end) task.wait(0.25) elseif sellAllEnabled then pcall(function() sl:InvokeServer() end) task.wait(0.25) elseif equipBestEnabled then pcall(function() eq:InvokeServer() end) task.wait(0.4) end end petLoopRunning=false end) end MakeToggle(FarmPage,"Sell All",4,false,function(V) sellAllEnabled=V if sellAllEnabled then runPetWorkflow() end end) MakeToggle(FarmPage,"Equip Best",5,false,function(V) equipBestEnabled=V if equipBestEnabled then runPetWorkflow() end end) local barraUpgradeEnabled=false MakeToggle(FarmPage,"Barra Upgrade",6,false,function(V) barraUpgradeEnabled=V task.spawn(function() local su=RS:WaitForChild("Remotes"):WaitForChild("Stand_Upgrade") while barraUpgradeEnabled do pcall(function() su:InvokeServer() end) task.wait(0.005) end end) end) local shopBuyEnabled=false MakeToggle(FarmPage,"Shop Buy",7,false,function(V) shopBuyEnabled=V task.spawn(function() local gui,sb=Player:WaitForChild("PlayerGui"),RS:WaitForChild("Remotes"):WaitForChild("Shop_Buy") local targetIds={17,18,19,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50} local function isAvail(card) if card:IsA("GuiObject") and not card.Visible then return false end if card:GetAttribute("Locked") or card:GetAttribute("IsLocked") or card:GetAttribute("Owned") or card:GetAttribute("Purchased") or card:GetAttribute("Maxed") then return false end for _,d in ipairs(card:GetDescendants()) do if d:IsA("GuiObject") and d.Visible then local n=string.lower(d.Name) if string.find(n,"lock",1,true) or string.find(n,"cadeado",1,true) then return false end if d:IsA("TextLabel") or d:IsA("TextButton") then local t=string.lower(d.Text or "") if string.find(t,"locked",1,true) or string.find(t,"bloqueado",1,true) or string.find(t,"unlock",1,true) or string.find(t,"desbloque",1,true) or string.find(t,"owned",1,true) or string.find(t,"equip",1,true) or string.find(t,"max",1,true) or string.find(t,"comprado",1,true) then return false end end if d:IsA("GuiButton") and not d.Active then return false end end end return true end local function getAvailIds() local av,found={},false for _,id in ipairs(targetIds) do local s=tostring(id) for _,o in ipairs(gui:GetDescendants()) do if o:IsA("GuiObject") and o.Visible then local aid=o:GetAttribute("Id") or o:GetAttribute("ID") or o:GetAttribute("ItemId") or o:GetAttribute("ShopId") if tostring(aid)==s or o.Name==s or o.Name==("Item_"..s) or o.Name==("Slot_"..s) then found=true if isAvail(o) then av[id]=true end break end end end end if not found then for _,id in ipairs(targetIds) do av[id]=true end end return av end while shopBuyEnabled do local map=getAvailIds() for _,id in ipairs(targetIds) do if not shopBuyEnabled then break end if map[id] then pcall(function() sb:InvokeServer(id) end) task.wait(0.05) end end task.wait(0.15) end end) end) local antiAfkEnabled,antiAfkConn=false,nil MakeToggle(ConfigPage,"Anti AFK",2,false,function(V) antiAfkEnabled=V if antiAfkConn then antiAfkConn:Disconnect() antiAfkConn=nil end if antiAfkEnabled then antiAfkConn=Player.Idled:Connect(function() if not antiAfkEnabled then return end pcall(function() VirtualUser:CaptureController() VirtualUser:ClickButton2(Vector2.new()) end) end) task.spawn(function() while antiAfkEnabled do pcall(function() VirtualUser:CaptureController() VirtualUser:ClickButton2(Vector2.new()) end) task.wait(240) end end) end end) FarmTab.MouseButton1Click:Connect(function() FarmPage.Visible,ConfigPage.Visible=true,false FarmTab.BackgroundColor3,ConfigTab.BackgroundColor3=Color3.fromRGB(55,55,55),Color3.fromRGB(30,30,30) end) ConfigTab.MouseButton1Click:Connect(function() FarmPage.Visible,ConfigPage.Visible=false,true ConfigTab.BackgroundColor3,FarmTab.BackgroundColor3=Color3.fromRGB(55,55,55),Color3.fromRGB(30,30,30) end) FarmTab.BackgroundColor3=Color3.fromRGB(55,55,55) local Floating=Create("ImageButton",{Size=UDim2.fromOffset(58,58),Position=UDim2.new(0,20,0.5,-29),BackgroundColor3=Color3.fromRGB(10,10,10),Image=IMAGE_ID,ScaleType=Enum.ScaleType.Crop,ZIndex=10},GUI) Create("UICorner",{CornerRadius=UDim.new(1,0)},Floating) Create("UIStroke",{Color=Color3.new(1,1,1),Thickness=2},Floating) local fDrag,dStart,sPos,moved=false,nil,nil,false Floating.InputBegan:Connect(function(i) if i.UserInputType==Enum.UserInputType.MouseButton1 or i.UserInputType==Enum.UserInputType.Touch then fDrag,moved,dStart,sPos=true,false,i.Position,Floating.Position end end) UIS.InputChanged:Connect(function(i) if fDrag and (i.UserInputType==Enum.UserInputType.MouseMovement or i.UserInputType==Enum.UserInputType.Touch) then local d=i.Position-dStart if math.abs(d.X)>5 or math.abs(d.Y)>5 then moved=true end Floating.Position=UDim2.new(sPos.X.Scale,sPos.X.Offset+d.X,sPos.Y.Scale,sPos.Y.Offset+d.Y) end end) UIS.InputEnded:Connect(function(i) if i.UserInputType==Enum.UserInputType.MouseButton1 or i.UserInputType==Enum.UserInputType.Touch then if fDrag then fDrag=false if not moved then Main.Visible=not Main.Visible end end end end) Close.MouseButton1Click:Connect(function() GUI:Destroy() end) SetTransparency(0.3)