Yandro

Untitled

Oct 2nd, 2025
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 9.06 KB | None | 0 0
  1. -- PROJECT YANDRO HUB
  2. -- By: AI Assistant
  3. -- Características: Bordes blanco/negro, 2 funciones específicas
  4.  
  5. local Players = game:GetService("Players")
  6. local UserInputService = game:GetService("UserInputService")
  7. local TweenService = game:GetService("TweenService")
  8. local RunService = game:GetService("RunService")
  9.  
  10. local player = Players.LocalPlayer
  11. local mouse = player:GetMouse()
  12.  
  13. -- Crear GUI 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. -- Marco principal con bordes blanco/negro
  20. local MainFrame = Instance.new("Frame")
  21. MainFrame.Size = UDim2.new(0, 300, 0, 200)
  22. MainFrame.Position = UDim2.new(0.5, -150, 0.5, -100)
  23. MainFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  24. MainFrame.BorderSizePixel = 0
  25. MainFrame.Parent = ScreenGui
  26.  
  27. -- Borde exterior blanco
  28. local OuterBorder = Instance.new("UIStroke")
  29. OuterBorder.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  30. OuterBorder.Color = Color3.fromRGB(255, 255, 255)
  31. OuterBorder.Thickness = 3
  32. OuterBorder.Parent = MainFrame
  33.  
  34. -- Borde interior negro
  35. local InnerBorder = Instance.new("Frame")
  36. InnerBorder.Size = UDim2.new(1, -6, 1, -6)
  37. InnerBorder.Position = UDim2.new(0, 3, 0, 3)
  38. InnerBorder.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  39. InnerBorder.BorderSizePixel = 0
  40. InnerBorder.Parent = MainFrame
  41.  
  42. -- Título PROJECT YANDRO
  43. local Title = Instance.new("TextLabel")
  44. Title.Size = UDim2.new(1, 0, 0, 40)
  45. Title.Position = UDim2.new(0, 0, 0, 10)
  46. Title.BackgroundTransparency = 1
  47. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  48. Title.Text = "PROJECT YANDRO"
  49. Title.Font = Enum.Font.GothamBold
  50. Title.TextSize = 18
  51. Title.Parent = InnerBorder
  52.  
  53. -- Línea separadora
  54. local Separator = Instance.new("Frame")
  55. Separator.Size = UDim2.new(1, -20, 0, 1)
  56. Separator.Position = UDim2.new(0, 10, 0, 50)
  57. Separator.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  58. Separator.BorderSizePixel = 0
  59. Separator.Parent = InnerBorder
  60.  
  61. -- Variables de estado
  62. local speedBoostEnabled = false
  63. local flyEnabled = false
  64. local flyConnection = nil
  65. local flyStartTime = 0
  66.  
  67. -- Función para crear botones con estilo Yandro
  68. local function createYandroButton(name, text, position, callback)
  69.     local buttonFrame = Instance.new("Frame")
  70.     buttonFrame.Size = UDim2.new(0, 130, 0, 35)
  71.     buttonFrame.Position = position
  72.     buttonFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  73.     buttonFrame.BorderSizePixel = 0
  74.     buttonFrame.Parent = InnerBorder
  75.    
  76.     local buttonBorder = Instance.new("UIStroke")
  77.     buttonBorder.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  78.     buttonBorder.Color = Color3.fromRGB(255, 255, 255)
  79.     buttonBorder.Thickness = 2
  80.     buttonBorder.Parent = buttonFrame
  81.    
  82.     local button = Instance.new("TextButton")
  83.     button.Name = name
  84.     button.Size = UDim2.new(1, -4, 1, -4)
  85.     button.Position = UDim2.new(0, 2, 0, 2)
  86.     button.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  87.     button.TextColor3 = Color3.fromRGB(255, 255, 255)
  88.     button.Text = text
  89.     button.Font = Enum.Font.Gotham
  90.     button.TextSize = 12
  91.     button.Parent = buttonFrame
  92.    
  93.     button.MouseButton1Click:Connect(callback)
  94.    
  95.     return button
  96. end
  97.  
  98. -- FUNCIÓN 1: VELOCIDAD MEJORADA
  99. local speedButton = createYandroButton("SpeedBoost", "SPEED BOOST: [OFF]", UDim2.new(0, 20, 0, 70), 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 = 50  -- Velocidad aumentada
  106.             speedButton.Text = "SPEED BOOST: [ON]"
  107.             speedButton.TextColor3 = Color3.fromRGB(0, 255, 0)  -- Verde cuando está activo
  108.         else
  109.             character.Humanoid.WalkSpeed = 16  -- Velocidad normal
  110.             speedButton.Text = "SPEED BOOST: [OFF]"
  111.             speedButton.TextColor3 = Color3.fromRGB(255, 255, 255)  -- Blanco cuando está inactivo
  112.         end
  113.     end
  114. end)
  115.  
  116. -- FUNCIÓN 2: VUELO TEMPORAL
  117. local flyButton = createYandroButton("FlyBoost", "FLY BOOST: [OFF]", UDim2.new(0, 20, 0, 115), function()
  118.     flyEnabled = not flyEnabled
  119.    
  120.     if flyEnabled then
  121.         flyButton.Text = "FLY BOOST: [ACTIVE]"
  122.         flyButton.TextColor3 = Color3.fromRGB(0, 255, 0)
  123.         flyStartTime = tick()
  124.        
  125.         -- Activar vuelo
  126.         local character = player.Character
  127.         if character and character:FindFirstChild("Humanoid") then
  128.             character.Humanoid.PlatformStand = true
  129.            
  130.             -- Conexión para el vuelo
  131.             flyConnection = RunService.Heartbeat:Connect(function()
  132.                 local currentTime = tick()
  133.                 local elapsedTime = currentTime - flyStartTime
  134.                
  135.                 -- Desactivar después de 10 segundos
  136.                 if elapsedTime >= 10 then
  137.                     if flyConnection then
  138.                         flyConnection:Disconnect()
  139.                         flyConnection = nil
  140.                     end
  141.                    
  142.                     flyEnabled = false
  143.                     flyButton.Text = "FLY BOOST: [OFF]"
  144.                     flyButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  145.                    
  146.                     -- Restaurar estado normal
  147.                     if character and character:FindFirstChild("Humanoid") then
  148.                         character.Humanoid.PlatformStand = false
  149.                     end
  150.                     return
  151.                 end
  152.                
  153.                 -- Control de vuelo cada 1 segundo (concepto)
  154.                 if math.floor(elapsedTime) ~= math.floor(elapsedTime - 0.033) then
  155.                     -- Cada segundo aproximadamente
  156.                     if character and character:FindFirstChild("HumanoidRootPart") then
  157.                         local root = character.HumanoidRootPart
  158.                        
  159.                         -- Movimiento de vuelo básico
  160.                         if UserInputService:IsKeyDown(Enum.KeyCode.W) then
  161.                             root.Velocity = root.CFrame.LookVector * 50
  162.                         elseif UserInputService:IsKeyDown(Enum.KeyCode.S) then
  163.                             root.Velocity = -root.CFrame.LookVector * 50
  164.                         elseif UserInputService:IsKeyDown(Enum.KeyCode.A) then
  165.                             root.Velocity = -root.CFrame.RightVector * 50
  166.                         elseif UserInputService:IsKeyDown(Enum.KeyCode.Space) then
  167.                             root.Velocity = Vector3.new(0, 50, 0)
  168.                         elseif UserInputService:IsKeyDown(Enum.KeyCode.LeftShift) then
  169.                             root.Velocity = Vector3.new(0, -50, 0)
  170.                         else
  171.                             root.Velocity = Vector3.new(root.Velocity.X * 0.9, root.Velocity.Y * 0.9, root.Velocity.Z * 0.9)
  172.                         end
  173.                     end
  174.                 end
  175.             end)
  176.         end
  177.     else
  178.         -- Desactivar vuelo manualmente
  179.         if flyConnection then
  180.             flyConnection:Disconnect()
  181.             flyConnection = nil
  182.         end
  183.        
  184.         flyButton.Text = "FLY BOOST: [OFF]"
  185.         flyButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  186.        
  187.         -- Restaurar estado normal
  188.         local character = player.Character
  189.         if character and character:FindFirstChild("Humanoid") then
  190.             character.Humanoid.PlatformStand = false
  191.         end
  192.     end
  193. end)
  194.  
  195. -- Texto informativo
  196. local InfoText = Instance.new("TextLabel")
  197. InfoText.Size = UDim2.new(1, -20, 0, 40)
  198. InfoText.Position = UDim2.new(0, 10, 0, 160)
  199. InfoText.BackgroundTransparency = 1
  200. InfoText.TextColor3 = Color3.fromRGB(200, 200, 200)
  201. InfoText.Text = "Fly: W/S/A/D + Space/Shift\nDuración: 10 segundos"
  202. InfoText.Font = Enum.Font.Gotham
  203. InfoText.TextSize = 10
  204. InfoText.TextXAlignment = Enum.TextXAlignment.Left
  205. InfoText.Parent = InnerBorder
  206.  
  207. -- Sistema de arrastre para la ventana
  208. local dragging = false
  209. local dragInput, dragStart, startPos
  210.  
  211. MainFrame.InputBegan:Connect(function(input)
  212.     if input.UserInputType == Enum.UserInputType.MouseButton1 then
  213.         dragging = true
  214.         dragStart = input.Position
  215.         startPos = MainFrame.Position
  216.        
  217.         input.Changed:Connect(function()
  218.             if input.UserInputState == Enum.UserInputState.End then
  219.                 dragging = false
  220.             end
  221.         end)
  222.     end
  223. end)
  224.  
  225. MainFrame.InputChanged:Connect(function(input)
  226.     if input.UserInputType == Enum.UserInputType.MouseMovement then
  227.         dragInput = input
  228.     end
  229. end)
  230.  
  231. UserInputService.InputChanged:Connect(function(input)
  232.     if input == dragInput and dragging then
  233.         local delta = input.Position - dragStart
  234.         MainFrame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  235.     end
  236. end)
  237.  
  238. print("🎮 PROJECT YANDRO HUB loaded successfully!")
  239. print("⚡ Functions: Speed Boost & Temporary Flight")
  240. print("⏱️ Flight duration: 10 seconds auto-disable")
Advertisement
Add Comment
Please, Sign In to add comment