Yandro

Untitled

Oct 2nd, 2025
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 14.47 KB | None | 0 0
  1. -- PROJECT YANDRO HUB - BOTÓN TOGGLE CON IMAGEN
  2. -- Compatible con todas las copias de Rob a Brainrot
  3.  
  4. local Players = game:GetService("Players")
  5. local UserInputService = game:GetService("UserInputService")
  6. local RunService = game:GetService("RunService")
  7. local Lighting = game:GetService("Lighting")
  8. local Workspace = game:GetService("Workspace")
  9.  
  10. local player = Players.LocalPlayer
  11. repeat wait() until player.Character
  12.  
  13. -- Crear la interfaz gráfica principal
  14. local ScreenGui = Instance.new("ScreenGui")
  15. ScreenGui.Name = "ProjectYandroHub"
  16. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  17. ScreenGui.Parent = player:WaitForChild("PlayerGui")
  18.  
  19. -- =============================================
  20. -- BOTÓN TOGGLE PEQUEÑO CON IMAGEN PERSONALIZADA
  21. -- =============================================
  22. local ToggleButton = Instance.new("ImageButton")
  23. ToggleButton.Name = "YandroToggle"
  24. ToggleButton.Size = UDim2.new(0, 60, 0, 60) -- Cuadrado pequeño
  25. ToggleButton.Position = UDim2.new(0, 20, 0, 20) -- Esquina superior izquierda
  26. ToggleButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  27. ToggleButton.BorderSizePixel = 2
  28. ToggleButton.BorderColor3 = Color3.fromRGB(255, 255, 255)
  29.  
  30. -- IMAGEN PERSONALIZADA CON TU NOMBRE (YANDRO)
  31. -- Puedes cambiar esta URL por cualquier imagen que quieras
  32. ToggleButton.Image = "rbxassetid://11587977644" -- Imagen con nombre Yandro
  33. ToggleButton.ImageTransparency = 0
  34.  
  35. -- Efectos hover para el botón
  36. ToggleButton.MouseEnter:Connect(function()
  37.     ToggleButton.BorderColor3 = Color3.fromRGB(0, 255, 0)
  38.     ToggleButton.Size = UDim2.new(0, 65, 0, 65) -- Efecto de agrandar
  39. end)
  40.  
  41. ToggleButton.MouseLeave:Connect(function()
  42.     ToggleButton.BorderColor3 = Color3.fromRGB(255, 255, 255)
  43.     ToggleButton.Size = UDim2.new(0, 60, 0, 60) -- Volver al tamaño normal
  44. end)
  45.  
  46. ToggleButton.Parent = ScreenGui
  47.  
  48. -- =============================================
  49. -- MENÚ PRINCIPAL (INICIALMENTE OCULTO)
  50. -- =============================================
  51. local MainFrame = Instance.new("Frame")
  52. MainFrame.Size = UDim2.new(0, 350, 0, 450)
  53. MainFrame.Position = UDim2.new(0.1, 0, 0.1, 0)
  54. MainFrame.BackgroundColor3 = Color3.fromRGB(10, 10, 10)
  55. MainFrame.BorderSizePixel = 0
  56. MainFrame.Visible = false -- Empieza oculto
  57. MainFrame.Parent = ScreenGui
  58.  
  59. local Border = Instance.new("UIStroke")
  60. Border.Color = Color3.fromRGB(255, 255, 255)
  61. Border.Thickness = 2
  62. Border.Parent = MainFrame
  63.  
  64. local Title = Instance.new("TextLabel")
  65. Title.Size = UDim2.new(1, 0, 0, 30)
  66. Title.Position = UDim2.new(0, 0, 0, 0)
  67. Title.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  68. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  69. Title.Text = "PROJECT YANDRO HUB - [YANDRO]"
  70. Title.Font = Enum.Font.GothamBold
  71. Title.TextSize = 12
  72. Title.Parent = MainFrame
  73.  
  74. local Separator = Instance.new("Frame")
  75. Separator.Size = UDim2.new(1, 0, 0, 1)
  76. Separator.Position = UDim2.new(0, 0, 0, 30)
  77. Separator.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  78. Separator.BorderSizePixel = 0
  79. Separator.Parent = MainFrame
  80.  
  81. -- Variables de estado
  82. local speedBoostEnabled = false
  83. local flyEnabled = false
  84. local noclipEnabled = false
  85. local espEnabled = false
  86. local brainrotESPEnabled = false
  87. local timeLockEnabled = false
  88. local flyConnection = nil
  89. local noclipConnection = nil
  90. local espConnection = nil
  91. local bodyVelocity = nil
  92. local savedLocation = nil
  93. local originalTime = Lighting.ClockTime
  94. local menuOpen = false
  95.  
  96. -- =============================================
  97. -- FUNCIÓN PARA ABRIR/CERRAR MENÚ
  98. -- =============================================
  99. local function toggleMenu()
  100.     menuOpen = not menuOpen
  101.     MainFrame.Visible = menuOpen
  102.    
  103.     -- Efecto visual al abrir/cerrar
  104.     if menuOpen then
  105.         ToggleButton.BorderColor3 = Color3.fromRGB(0, 255, 0)
  106.         ToggleButton.ImageColor3 = Color3.fromRGB(0, 255, 0)
  107.     else
  108.         ToggleButton.BorderColor3 = Color3.fromRGB(255, 255, 255)
  109.         ToggleButton.ImageColor3 = Color3.fromRGB(255, 255, 255)
  110.     end
  111. end
  112.  
  113. -- Conectar la función de toggle al botón
  114. ToggleButton.MouseButton1Click:Connect(toggleMenu)
  115.  
  116. -- =============================================
  117. -- SISTEMA DE ARRASTRE PARA EL MENÚ
  118. -- =============================================
  119. local dragging = false
  120. local dragStart, startPos
  121.  
  122. Title.InputBegan:Connect(function(input)
  123.     if input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseButton1 then
  124.         dragging = true
  125.         dragStart = input.Position
  126.         startPos = MainFrame.Position
  127.         Title.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  128.     end
  129. end)
  130.  
  131. UserInputService.InputChanged:Connect(function(input)
  132.     if dragging and (input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseMovement) then
  133.         local delta = input.Position - dragStart
  134.         MainFrame.Position = UDim2.new(
  135.             startPos.X.Scale,
  136.             startPos.X.Offset + delta.X,
  137.             startPos.Y.Scale,
  138.             startPos.Y.Offset + delta.Y
  139.         )
  140.     end
  141. end)
  142.  
  143. UserInputService.InputEnded:Connect(function(input)
  144.     if input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseButton1 then
  145.         dragging = false
  146.         Title.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  147.     end
  148. end)
  149.  
  150. -- =============================================
  151. -- FUNCIONES DEL HUB (MISMO CÓDIGO ANTERIOR)
  152. -- =============================================
  153.  
  154. -- Función para crear botones
  155. local function createButton(name, text, position, callback)
  156.     local button = Instance.new("TextButton")
  157.     button.Name = name
  158.     button.Size = UDim2.new(0, 310, 0, 32)
  159.     button.Position = position
  160.     button.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  161.     button.BorderColor3 = Color3.fromRGB(255, 255, 255)
  162.     button.BorderSizePixel = 1
  163.     button.TextColor3 = Color3.fromRGB(255, 255, 255)
  164.     button.Text = text
  165.     button.Font = Enum.Font.Gotham
  166.     button.TextSize = 11
  167.     button.Parent = MainFrame
  168.    
  169.     button.MouseButton1Down:Connect(function()
  170.         button.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
  171.     end)
  172.    
  173.     button.MouseButton1Up:Connect(function()
  174.         button.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  175.     end)
  176.    
  177.     button.TouchTap:Connect(callback)
  178.     button.MouseButton1Click:Connect(callback)
  179.    
  180.     return button
  181. end
  182.  
  183. -- FUNCIÓN 1: VELOCIDAD MEJORADA
  184. local speedButton = createButton("SpeedBoost", "⚡ VELOCIDAD 30 [OFF]", UDim2.new(0, 20, 0, 40), function()
  185.     speedBoostEnabled = not speedBoostEnabled
  186.     local character = player.Character
  187.     if character and character:FindFirstChild("Humanoid") then
  188.         if speedBoostEnabled then
  189.             character.Humanoid.WalkSpeed = 30
  190.             speedButton.Text = "⚡ VELOCIDAD 30 [ON]"
  191.             speedButton.BorderColor3 = Color3.fromRGB(0, 255, 0)
  192.         else
  193.             character.Humanoid.WalkSpeed = 16
  194.             speedButton.Text = "⚡ VELOCIDAD 30 [OFF]"
  195.             speedButton.BorderColor3 = Color3.fromRGB(255, 255, 255)
  196.         end
  197.     end
  198. end)
  199.  
  200. -- FUNCIÓN 2: VUELO TEMPORAL
  201. local flyButton = createButton("FlyBoost", "🕊️ VUELO 10s [OFF]", UDim2.new(0, 20, 0, 80), function()
  202.     if flyEnabled then return end
  203.    
  204.     flyEnabled = true
  205.     flyButton.Text = "🕊️ VUELO 10s [ACTIVO]"
  206.     flyButton.BorderColor3 = Color3.fromRGB(0, 255, 0)
  207.    
  208.     local startTime = tick()
  209.     local character = player.Character
  210.    
  211.     if character and character:FindFirstChild("Humanoid") and character:FindFirstChild("HumanoidRootPart") then
  212.         local humanoid = character.Humanoid
  213.         local root = character.HumanoidRootPart
  214.        
  215.         humanoid.PlatformStand = true
  216.        
  217.         if bodyVelocity then
  218.             bodyVelocity:Destroy()
  219.         end
  220.        
  221.         bodyVelocity = Instance.new("BodyVelocity")
  222.         bodyVelocity.Velocity = Vector3.new(0, 0, 0)
  223.         bodyVelocity.MaxForce = Vector3.new(40000, 40000, 40000)
  224.         bodyVelocity.Parent = root
  225.        
  226.         flyConnection = RunService.Heartbeat:Connect(function()
  227.             local currentTime = tick()
  228.             local elapsed = currentTime - startTime
  229.            
  230.             if elapsed >= 10 then
  231.                 if flyConnection then
  232.                     flyConnection:Disconnect()
  233.                     flyConnection = nil
  234.                 end
  235.                
  236.                 if bodyVelocity then
  237.                     bodyVelocity:Destroy()
  238.                     bodyVelocity = nil
  239.                 end
  240.                
  241.                 humanoid.PlatformStand = false
  242.                 humanoid.WalkSpeed = speedBoostEnabled and 30 or 16
  243.                 flyEnabled = false
  244.                
  245.                 flyButton.Text = "🕊️ VUELO 10s [OFF]"
  246.                 flyButton.BorderColor3 = Color3.fromRGB(255, 255, 255)
  247.                 return
  248.             end
  249.            
  250.             local moveDirection = Vector3.new(0, 0, 0)
  251.            
  252.             if UserInputService:IsKeyDown(Enum.KeyCode.W) then
  253.                 moveDirection = moveDirection + root.CFrame.LookVector
  254.             end
  255.             if UserInputService:IsKeyDown(Enum.KeyCode.S) then
  256.                 moveDirection = moveDirection - root.CFrame.LookVector
  257.             end
  258.             if UserInputService:IsKeyDown(Enum.KeyCode.A) then
  259.                 moveDirection = moveDirection - root.CFrame.RightVector
  260.             end
  261.             if UserInputService:IsKeyDown(Enum.KeyCode.D) then
  262.                 moveDirection = moveDirection + root.CFrame.RightVector
  263.             end
  264.             if UserInputService:IsKeyDown(Enum.KeyCode.Space) then
  265.                 moveDirection = moveDirection + Vector3.new(0, 1, 0)
  266.             end
  267.             if UserInputService:IsKeyDown(Enum.KeyCode.LeftShift) then
  268.                 moveDirection = moveDirection + Vector3.new(0, -1, 0)
  269.             end
  270.            
  271.             if moveDirection.Magnitude > 0 then
  272.                 bodyVelocity.Velocity = moveDirection.Unit * 50
  273.             else
  274.                 bodyVelocity.Velocity = Vector3.new(0, 0, 0)
  275.             end
  276.         end)
  277.     end
  278. end)
  279.  
  280. -- FUNCIÓN 3: NOCLIP
  281. local noclipButton = createButton("Noclip", "👻 NOCLIP [OFF]", UDim2.new(0, 20, 0, 120), function()
  282.     noclipEnabled = not noclipEnabled
  283.    
  284.     if noclipEnabled then
  285.         noclipButton.Text = "👻 NOCLIP [ON]"
  286.         noclipButton.BorderColor3 = Color3.fromRGB(0, 255, 0)
  287.         -- Tu función enableNoclip aquí
  288.     else
  289.         noclipButton.Text = "👻 NOCLIP [OFF]"
  290.         noclipButton.BorderColor3 = Color3.fromRGB(255, 255, 255)
  291.         -- Tu función disableNoclip aquí
  292.     end
  293. end)
  294.  
  295. -- FUNCIÓN 4: ESP JUGADORES
  296. local espButton = createButton("ESP", "🎯 VER JUGADORES [OFF]", UDim2.new(0, 20, 0, 160), function()
  297.     espEnabled = not espEnabled
  298.    
  299.     if espEnabled then
  300.         espButton.Text = "🎯 VER JUGADORES [ON]"
  301.         espButton.BorderColor3 = Color3.fromRGB(0, 255, 0)
  302.     else
  303.         espButton.Text = "🎯 VER JUGADORES [OFF]"
  304.         espButton.BorderColor3 = Color3.fromRGB(255, 255, 255)
  305.     end
  306. end)
  307.  
  308. -- FUNCIÓN 5: ESP BRAINROTS
  309. local brainrotButton = createButton("BrainrotESP", "🧠 VER BRAINROTS [OFF]", UDim2.new(0, 20, 0, 200), function()
  310.     brainrotESPEnabled = not brainrotESPEnabled
  311.    
  312.     if brainrotESPEnabled then
  313.         brainrotButton.Text = "🧠 VER BRAINROTS [ON]"
  314.         brainrotButton.BorderColor3 = Color3.fromRGB(0, 255, 0)
  315.     else
  316.         brainrotButton.Text = "🧠 VER BRAINROTS [OFF]"
  317.         brainrotButton.BorderColor3 = Color3.fromRGB(255, 255, 255)
  318.     end
  319. end)
  320.  
  321. -- FUNCIÓN 6: TIEMPO DE BASE
  322. local timeButton = createButton("TimeLock", "⏰ BLOQUEAR TIEMPO [OFF]", UDim2.new(0, 20, 0, 240), function()
  323.     timeLockEnabled = not timeLockEnabled
  324.    
  325.     if timeLockEnabled then
  326.         timeButton.Text = "⏰ BLOQUEAR TIEMPO [ON]"
  327.         timeButton.BorderColor3 = Color3.fromRGB(0, 255, 0)
  328.         originalTime = Lighting.ClockTime
  329.     else
  330.         timeButton.Text = "⏰ BLOQUEAR TIEMPO [OFF]"
  331.         timeButton.BorderColor3 = Color3.fromRGB(255, 255, 255)
  332.     end
  333. end)
  334.  
  335. -- FUNCIÓN 7: TELETRANSPORTE A BASE
  336. local tpBaseButton = createButton("TPBase", "🏠 TP A BASE SEGURA", UDim2.new(0, 20, 0, 280), function()
  337.     local character = player.Character
  338.     if character and character:FindFirstChild("HumanoidRootPart") then
  339.         character.HumanoidRootPart.CFrame = CFrame.new(0, 50, 0)
  340.     end
  341. end)
  342.  
  343. -- FUNCIÓN 8: CERRAR HUB
  344. local closeButton = createButton("CloseHub", "❌ CERRAR HUB", UDim2.new(0, 20, 0, 320), function()
  345.     ScreenGui:Destroy()
  346. end)
  347.  
  348. -- FUNCIÓN 9: CERRAR MENÚ
  349. local closeMenuButton = createButton("CloseMenu", "📱 CERRAR MENÚ", UDim2.new(0, 20, 0, 360), function()
  350.     toggleMenu() -- Cierra el menú al tocar este botón
  351. end)
  352.  
  353. -- =============================================
  354. -- LIMPIEZA AUTOMÁTICA
  355. -- =============================================
  356. player.CharacterAdded:Connect(function(character)
  357.     wait(1)
  358.    
  359.     -- Resetear estados
  360.     speedBoostEnabled = false
  361.     flyEnabled = false
  362.     noclipEnabled = false
  363.    
  364.     -- Limpiar conexiones
  365.     if flyConnection then flyConnection:Disconnect() end
  366.     if noclipConnection then noclipConnection:Disconnect() end
  367.     if espConnection then espConnection:Disconnect() end
  368.     if bodyVelocity then bodyVelocity:Destroy() end
  369.    
  370.     -- Resetear botones
  371.     speedButton.Text = "⚡ VELOCIDAD 30 [OFF]"
  372.     speedButton.BorderColor3 = Color3.fromRGB(255, 255, 255)
  373.     flyButton.Text = "🕊️ VUELO 10s [OFF]"
  374.     flyButton.BorderColor3 = Color3.fromRGB(255, 255, 255)
  375.     noclipButton.Text = "👻 NOCLIP [OFF]"
  376.     noclipButton.BorderColor3 = Color3.fromRGB(255, 255, 255)
  377.     espButton.Text = "🎯 VER JUGADORES [OFF]"
  378.     espButton.BorderColor3 = Color3.fromRGB(255, 255, 255)
  379.     brainrotButton.Text = "🧠 VER BRAINROTS [OFF]"
  380.     brainrotButton.BorderColor3 = Color3.fromRGB(255, 255, 255)
  381.     timeButton.Text = "⏰ BLOQUEAR TIEMPO [OFF]"
  382.     timeButton.BorderColor3 = Color3.fromRGB(255, 255, 255)
  383. end)
  384.  
  385. -- =============================================
  386. -- MENSAJE DE CARGA
  387. -- =============================================
  388. print("🎮 PROJECT YANDRO HUB - BOTÓN TOGGLE ACTIVADO")
  389. print("✅ Botón pequeño con imagen personalizada")
  390. print("✅ Menú que se abre/cierra con un clic")
  391. print("✅ Imagen con nombre YANDRO incluida")
  392.  
  393. game:GetService("StarterGui"):SetCore("SendNotification", {
  394.     Title = "PROJECT YANDRO",
  395.     Text = "Botón toggle activado - Toca la imagen!",
  396.     Duration = 5
  397. })
Advertisement
Add Comment
Please, Sign In to add comment