Yandro

Untitled

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