Yandro

Untitled

Oct 2nd, 2025
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 9.87 KB | None | 0 0
  1. -- PROJECT YANDRO HUB - VERSIÓN FUNCIONAL
  2. -- Compatible con PC y Móvil
  3.  
  4. local Players = game:GetService("Players")
  5. local UserInputService = game:GetService("UserInputService")
  6. local RunService = game:GetService("RunService")
  7.  
  8. local player = Players.LocalPlayer
  9.  
  10. -- Esperar a que el player cargue
  11. if not player then
  12.     player = Players.LocalPlayer
  13. end
  14.  
  15. -- Crear GUI
  16. local ScreenGui = Instance.new("ScreenGui")
  17. ScreenGui.Name = "ProjectYandroHub"
  18. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  19. ScreenGui.Parent = player:WaitForChild("PlayerGui")
  20.  
  21. -- Marco principal
  22. local MainFrame = Instance.new("Frame")
  23. MainFrame.Size = UDim2.new(0, 300, 0, 200)
  24. MainFrame.Position = UDim2.new(0.1, 0, 0.1, 0)
  25. MainFrame.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  26. MainFrame.BorderSizePixel = 0
  27. MainFrame.ClipsDescendants = true
  28. MainFrame.Parent = ScreenGui
  29.  
  30. -- Borde blanco
  31. local Border = Instance.new("UIStroke")
  32. Border.Color = Color3.fromRGB(255, 255, 255)
  33. Border.Thickness = 2
  34. Border.Parent = MainFrame
  35.  
  36. -- Título (área para arrastrar)
  37. local Title = Instance.new("TextLabel")
  38. Title.Size = UDim2.new(1, 0, 0, 30)
  39. Title.Position = UDim2.new(0, 0, 0, 0)
  40. Title.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  41. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  42. Title.Text = "PROJECT YANDRO - TOCA PARA MOVER"
  43. Title.Font = Enum.Font.GothamBold
  44. Title.TextSize = 12
  45. Title.Parent = MainFrame
  46.  
  47. -- Separador
  48. local Separator = Instance.new("Frame")
  49. Separator.Size = UDim2.new(1, 0, 0, 1)
  50. Separator.Position = UDim2.new(0, 0, 0, 30)
  51. Separator.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  52. Separator.BorderSizePixel = 0
  53. Separator.Parent = MainFrame
  54.  
  55. -- Estados globales
  56. local speedBoostEnabled = false
  57. local flyEnabled = false
  58. local flyConnection = nil
  59. local bodyVelocity = nil
  60.  
  61. -- Función para crear botones
  62. local function createButton(name, text, position, callback)
  63.     local button = Instance.new("TextButton")
  64.     button.Name = name
  65.     button.Size = UDim2.new(0, 260, 0, 35)
  66.     button.Position = position
  67.     button.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  68.     button.BorderColor3 = Color3.fromRGB(255, 255, 255)
  69.     button.BorderSizePixel = 2
  70.     button.TextColor3 = Color3.fromRGB(255, 255, 255)
  71.     button.Text = text
  72.     button.Font = Enum.Font.Gotham
  73.     button.TextSize = 12
  74.     button.Parent = MainFrame
  75.    
  76.     -- Efectos de botón
  77.     button.MouseButton1Down:Connect(function()
  78.         button.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
  79.     end)
  80.    
  81.     button.MouseButton1Up:Connect(function()
  82.         button.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  83.     end)
  84.    
  85.     -- Compatibilidad con touch
  86.     button.TouchTap:Connect(callback)
  87.     button.MouseButton1Click:Connect(callback)
  88.    
  89.     return button
  90. end
  91.  
  92. -- FUNCIÓN 1: VELOCIDAD MEJORADA
  93. local speedButton = createButton("SpeedBoost", "⚡ VELOCIDAD 30 [OFF]", UDim2.new(0, 20, 0, 40), function()
  94.     speedBoostEnabled = not speedBoostEnabled
  95.    
  96.     local character = player.Character
  97.     if character and character:FindFirstChild("Humanoid") then
  98.         if speedBoostEnabled then
  99.             character.Humanoid.WalkSpeed = 30
  100.             speedButton.Text = "⚡ VELOCIDAD 30 [ON]"
  101.             speedButton.BorderColor3 = Color3.fromRGB(0, 255, 0)
  102.             speedButton.TextColor3 = Color3.fromRGB(0, 255, 0)
  103.         else
  104.             character.Humanoid.WalkSpeed = 16
  105.             speedButton.Text = "⚡ VELOCIDAD 30 [OFF]"
  106.             speedButton.BorderColor3 = Color3.fromRGB(255, 255, 255)
  107.             speedButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  108.         end
  109.     end
  110. end)
  111.  
  112. -- FUNCIÓN 2: VUELO TEMPORAL
  113. local flyButton = createButton("FlyBoost", "🕊️ VUELO 10s [OFF]", UDim2.new(0, 20, 0, 85), function()
  114.     if flyEnabled then return end
  115.    
  116.     flyEnabled = true
  117.     flyButton.Text = "🕊️ VUELO 10s [ACTIVO]"
  118.     flyButton.BorderColor3 = Color3.fromRGB(0, 255, 0)
  119.     flyButton.TextColor3 = Color3.fromRGB(0, 255, 0)
  120.    
  121.     local startTime = tick()
  122.     local character = player.Character
  123.    
  124.     if character and character:FindFirstChild("Humanoid") and character:FindFirstChild("HumanoidRootPart") then
  125.         local humanoid = character.Humanoid
  126.         local root = character.HumanoidRootPart
  127.        
  128.         -- Activar vuelo
  129.         humanoid.PlatformStand = true
  130.        
  131.         -- Crear BodyVelocity para vuelo
  132.         if bodyVelocity then
  133.             bodyVelocity:Destroy()
  134.         end
  135.        
  136.         bodyVelocity = Instance.new("BodyVelocity")
  137.         bodyVelocity.Velocity = Vector3.new(0, 0, 0)
  138.         bodyVelocity.MaxForce = Vector3.new(40000, 40000, 40000)
  139.         bodyVelocity.Parent = root
  140.        
  141.         -- Conexión principal de vuelo
  142.         flyConnection = RunService.Heartbeat:Connect(function()
  143.             local currentTime = tick()
  144.             local elapsed = currentTime - startTime
  145.            
  146.             -- Auto-desactivar después de 10 segundos
  147.             if elapsed >= 10 then
  148.                 if flyConnection then
  149.                     flyConnection:Disconnect()
  150.                     flyConnection = nil
  151.                 end
  152.                
  153.                 if bodyVelocity then
  154.                     bodyVelocity:Destroy()
  155.                     bodyVelocity = nil
  156.                 end
  157.                
  158.                 humanoid.PlatformStand = false
  159.                 flyEnabled = false
  160.                
  161.                 -- Restaurar velocidad
  162.                 humanoid.WalkSpeed = speedBoostEnabled and 30 or 16
  163.                
  164.                 flyButton.Text = "🕊️ VUELO 10s [OFF]"
  165.                 flyButton.BorderColor3 = Color3.fromRGB(255, 255, 255)
  166.                 flyButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  167.                 return
  168.             end
  169.            
  170.             -- Control de vuelo
  171.             local moveDirection = Vector3.new(0, 0, 0)
  172.            
  173.             -- Controles de teclado
  174.             if UserInputService:IsKeyDown(Enum.KeyCode.W) then
  175.                 moveDirection = moveDirection + root.CFrame.LookVector
  176.             end
  177.             if UserInputService:IsKeyDown(Enum.KeyCode.S) then
  178.                 moveDirection = moveDirection - root.CFrame.LookVector
  179.             end
  180.             if UserInputService:IsKeyDown(Enum.KeyCode.A) then
  181.                 moveDirection = moveDirection - root.CFrame.RightVector
  182.             end
  183.             if UserInputService:IsKeyDown(Enum.KeyCode.D) then
  184.                 moveDirection = moveDirection + root.CFrame.RightVector
  185.             end
  186.             if UserInputService:IsKeyDown(Enum.KeyCode.Space) then
  187.                 moveDirection = moveDirection + Vector3.new(0, 1, 0)
  188.             end
  189.             if UserInputService:IsKeyDown(Enum.KeyCode.LeftShift) then
  190.                 moveDirection = moveDirection + Vector3.new(0, -1, 0)
  191.             end
  192.            
  193.             -- Aplicar movimiento
  194.             if moveDirection.Magnitude > 0 then
  195.                 bodyVelocity.Velocity = moveDirection.Unit * 50
  196.             else
  197.                 bodyVelocity.Velocity = Vector3.new(0, 0, 0)
  198.             end
  199.         end)
  200.     end
  201. end)
  202.  
  203. -- Información
  204. local InfoText = Instance.new("TextLabel")
  205. InfoText.Size = UDim2.new(1, -20, 0, 50)
  206. InfoText.Position = UDim2.new(0, 10, 0, 130)
  207. InfoText.BackgroundTransparency = 1
  208. InfoText.TextColor3 = Color3.fromRGB(200, 200, 200)
  209. InfoText.Text = "⚡ Vel: 30 | 🕊️ Vuelo: 10s\nW/A/S/D + Space/Shift"
  210. InfoText.Font = Enum.Font.Gotham
  211. InfoText.TextSize = 11
  212. InfoText.TextXAlignment = Enum.TextXAlignment.Left
  213. InfoText.Parent = MainFrame
  214.  
  215. -- SISTEMA DE ARRASTRE MEJORADO
  216. local dragging = false
  217. local dragStart, startPos
  218.  
  219. Title.InputBegan:Connect(function(input)
  220.     if input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseButton1 then
  221.         dragging = true
  222.         dragStart = input.Position
  223.         startPos = MainFrame.Position
  224.         Title.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
  225.     end
  226. end)
  227.  
  228. UserInputService.InputChanged:Connect(function(input)
  229.     if dragging and (input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseMovement) then
  230.         local delta = input.Position - dragStart
  231.         MainFrame.Position = UDim2.new(
  232.             startPos.X.Scale,
  233.             startPos.X.Offset + delta.X,
  234.             startPos.Y.Scale,
  235.             startPos.Y.Offset + delta.Y
  236.         )
  237.     end
  238. end)
  239.  
  240. UserInputService.InputEnded:Connect(function(input)
  241.     if input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseButton1 then
  242.         dragging = false
  243.         Title.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  244.     end
  245. end)
  246.  
  247. -- LIMPIEZA AUTOMÁTICA
  248. player.CharacterAdded:Connect(function(character)
  249.     wait(1) -- Esperar a que el character cargue completamente
  250.    
  251.     -- Resetear estados
  252.     speedBoostEnabled = false
  253.     flyEnabled = false
  254.    
  255.     -- Limpiar conexiones
  256.     if flyConnection then
  257.         flyConnection:Disconnect()
  258.         flyConnection = nil
  259.     end
  260.    
  261.     if bodyVelocity then
  262.         bodyVelocity:Destroy()
  263.         bodyVelocity = nil
  264.     end
  265.    
  266.     -- Resetear botones
  267.     speedButton.Text = "⚡ VELOCIDAD 30 [OFF]"
  268.     speedButton.BorderColor3 = Color3.fromRGB(255, 255, 255)
  269.     speedButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  270.    
  271.     flyButton.Text = "🕊️ VUELO 10s [OFF]"
  272.     flyButton.BorderColor3 = Color3.fromRGB(255, 255, 255)
  273.     flyButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  274. end)
  275.  
  276. -- CONFIRMACIÓN DE CARGA
  277. print("🎮 PROJECT YANDRO HUB - CARGADO EXITOSAMENTE")
  278. print("✅ Velocidad 30: FUNCIONAL")
  279. print("✅ Vuelo 10s: FUNCIONAL")
  280. print("✅ Arrastrable: FUNCIONAL")
  281. print("✅ Compatible con Móvil: FUNCIONAL")
  282.  
  283. -- Mensaje de uso
  284. game:GetService("StarterGui"):SetCore("SendNotification", {
  285.     Title = "PROJECT YANDRO",
  286.     Text = "Hub cargado exitosamente!",
  287.     Duration = 5
  288. })
Advertisement
Add Comment
Please, Sign In to add comment