Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- PROJECT YANDRO HUB - VERSIÓN FUNCIONAL
- -- Compatible con PC y Móvil
- local Players = game:GetService("Players")
- local UserInputService = game:GetService("UserInputService")
- local RunService = game:GetService("RunService")
- local player = Players.LocalPlayer
- -- Esperar a que el player cargue
- if not player then
- player = Players.LocalPlayer
- end
- -- Crear GUI
- local ScreenGui = Instance.new("ScreenGui")
- ScreenGui.Name = "ProjectYandroHub"
- ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- ScreenGui.Parent = player:WaitForChild("PlayerGui")
- -- Marco principal
- local MainFrame = Instance.new("Frame")
- MainFrame.Size = UDim2.new(0, 300, 0, 200)
- MainFrame.Position = UDim2.new(0.1, 0, 0.1, 0)
- MainFrame.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
- MainFrame.BorderSizePixel = 0
- MainFrame.ClipsDescendants = true
- MainFrame.Parent = ScreenGui
- -- Borde blanco
- local Border = Instance.new("UIStroke")
- Border.Color = Color3.fromRGB(255, 255, 255)
- Border.Thickness = 2
- Border.Parent = MainFrame
- -- Título (área para arrastrar)
- local Title = Instance.new("TextLabel")
- Title.Size = UDim2.new(1, 0, 0, 30)
- Title.Position = UDim2.new(0, 0, 0, 0)
- Title.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
- Title.TextColor3 = Color3.fromRGB(255, 255, 255)
- Title.Text = "PROJECT YANDRO - TOCA PARA MOVER"
- Title.Font = Enum.Font.GothamBold
- Title.TextSize = 12
- Title.Parent = MainFrame
- -- Separador
- local Separator = Instance.new("Frame")
- Separator.Size = UDim2.new(1, 0, 0, 1)
- Separator.Position = UDim2.new(0, 0, 0, 30)
- Separator.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Separator.BorderSizePixel = 0
- Separator.Parent = MainFrame
- -- Estados globales
- local speedBoostEnabled = false
- local flyEnabled = false
- local flyConnection = nil
- local bodyVelocity = nil
- -- Función para crear botones
- local function createButton(name, text, position, callback)
- local button = Instance.new("TextButton")
- button.Name = name
- button.Size = UDim2.new(0, 260, 0, 35)
- button.Position = position
- button.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
- button.BorderColor3 = Color3.fromRGB(255, 255, 255)
- button.BorderSizePixel = 2
- button.TextColor3 = Color3.fromRGB(255, 255, 255)
- button.Text = text
- button.Font = Enum.Font.Gotham
- button.TextSize = 12
- button.Parent = MainFrame
- -- Efectos de botón
- button.MouseButton1Down:Connect(function()
- button.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
- end)
- button.MouseButton1Up:Connect(function()
- button.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
- end)
- -- Compatibilidad con touch
- button.TouchTap:Connect(callback)
- button.MouseButton1Click:Connect(callback)
- return button
- end
- -- FUNCIÓN 1: VELOCIDAD MEJORADA
- local speedButton = createButton("SpeedBoost", "⚡ VELOCIDAD 30 [OFF]", UDim2.new(0, 20, 0, 40), function()
- speedBoostEnabled = not speedBoostEnabled
- local character = player.Character
- if character and character:FindFirstChild("Humanoid") then
- if speedBoostEnabled then
- character.Humanoid.WalkSpeed = 30
- speedButton.Text = "⚡ VELOCIDAD 30 [ON]"
- speedButton.BorderColor3 = Color3.fromRGB(0, 255, 0)
- speedButton.TextColor3 = Color3.fromRGB(0, 255, 0)
- else
- character.Humanoid.WalkSpeed = 16
- speedButton.Text = "⚡ VELOCIDAD 30 [OFF]"
- speedButton.BorderColor3 = Color3.fromRGB(255, 255, 255)
- speedButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- end
- end
- end)
- -- FUNCIÓN 2: VUELO TEMPORAL
- local flyButton = createButton("FlyBoost", "🕊️ VUELO 10s [OFF]", UDim2.new(0, 20, 0, 85), function()
- if flyEnabled then return end
- flyEnabled = true
- flyButton.Text = "🕊️ VUELO 10s [ACTIVO]"
- flyButton.BorderColor3 = Color3.fromRGB(0, 255, 0)
- flyButton.TextColor3 = Color3.fromRGB(0, 255, 0)
- local startTime = tick()
- local character = player.Character
- if character and character:FindFirstChild("Humanoid") and character:FindFirstChild("HumanoidRootPart") then
- local humanoid = character.Humanoid
- local root = character.HumanoidRootPart
- -- Activar vuelo
- humanoid.PlatformStand = true
- -- Crear BodyVelocity para vuelo
- if bodyVelocity then
- bodyVelocity:Destroy()
- end
- bodyVelocity = Instance.new("BodyVelocity")
- bodyVelocity.Velocity = Vector3.new(0, 0, 0)
- bodyVelocity.MaxForce = Vector3.new(40000, 40000, 40000)
- bodyVelocity.Parent = root
- -- Conexión principal de vuelo
- flyConnection = RunService.Heartbeat:Connect(function()
- local currentTime = tick()
- local elapsed = currentTime - startTime
- -- Auto-desactivar después de 10 segundos
- if elapsed >= 10 then
- if flyConnection then
- flyConnection:Disconnect()
- flyConnection = nil
- end
- if bodyVelocity then
- bodyVelocity:Destroy()
- bodyVelocity = nil
- end
- humanoid.PlatformStand = false
- flyEnabled = false
- -- Restaurar velocidad
- humanoid.WalkSpeed = speedBoostEnabled and 30 or 16
- flyButton.Text = "🕊️ VUELO 10s [OFF]"
- flyButton.BorderColor3 = Color3.fromRGB(255, 255, 255)
- flyButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- return
- end
- -- Control de vuelo
- local moveDirection = Vector3.new(0, 0, 0)
- -- Controles de teclado
- if UserInputService:IsKeyDown(Enum.KeyCode.W) then
- moveDirection = moveDirection + root.CFrame.LookVector
- end
- if UserInputService:IsKeyDown(Enum.KeyCode.S) then
- moveDirection = moveDirection - root.CFrame.LookVector
- end
- if UserInputService:IsKeyDown(Enum.KeyCode.A) then
- moveDirection = moveDirection - root.CFrame.RightVector
- end
- if UserInputService:IsKeyDown(Enum.KeyCode.D) then
- moveDirection = moveDirection + root.CFrame.RightVector
- end
- if UserInputService:IsKeyDown(Enum.KeyCode.Space) then
- moveDirection = moveDirection + Vector3.new(0, 1, 0)
- end
- if UserInputService:IsKeyDown(Enum.KeyCode.LeftShift) then
- moveDirection = moveDirection + Vector3.new(0, -1, 0)
- end
- -- Aplicar movimiento
- if moveDirection.Magnitude > 0 then
- bodyVelocity.Velocity = moveDirection.Unit * 50
- else
- bodyVelocity.Velocity = Vector3.new(0, 0, 0)
- end
- end)
- end
- end)
- -- Información
- local InfoText = Instance.new("TextLabel")
- InfoText.Size = UDim2.new(1, -20, 0, 50)
- InfoText.Position = UDim2.new(0, 10, 0, 130)
- InfoText.BackgroundTransparency = 1
- InfoText.TextColor3 = Color3.fromRGB(200, 200, 200)
- InfoText.Text = "⚡ Vel: 30 | 🕊️ Vuelo: 10s\nW/A/S/D + Space/Shift"
- InfoText.Font = Enum.Font.Gotham
- InfoText.TextSize = 11
- InfoText.TextXAlignment = Enum.TextXAlignment.Left
- InfoText.Parent = MainFrame
- -- SISTEMA DE ARRASTRE MEJORADO
- local dragging = false
- local dragStart, startPos
- Title.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseButton1 then
- dragging = true
- dragStart = input.Position
- startPos = MainFrame.Position
- Title.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
- end
- end)
- UserInputService.InputChanged:Connect(function(input)
- if dragging and (input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseMovement) then
- local delta = input.Position - dragStart
- MainFrame.Position = UDim2.new(
- startPos.X.Scale,
- startPos.X.Offset + delta.X,
- startPos.Y.Scale,
- startPos.Y.Offset + delta.Y
- )
- end
- end)
- UserInputService.InputEnded:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseButton1 then
- dragging = false
- Title.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
- end
- end)
- -- LIMPIEZA AUTOMÁTICA
- player.CharacterAdded:Connect(function(character)
- wait(1) -- Esperar a que el character cargue completamente
- -- Resetear estados
- speedBoostEnabled = false
- flyEnabled = false
- -- Limpiar conexiones
- if flyConnection then
- flyConnection:Disconnect()
- flyConnection = nil
- end
- if bodyVelocity then
- bodyVelocity:Destroy()
- bodyVelocity = nil
- end
- -- Resetear botones
- speedButton.Text = "⚡ VELOCIDAD 30 [OFF]"
- speedButton.BorderColor3 = Color3.fromRGB(255, 255, 255)
- speedButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- flyButton.Text = "🕊️ VUELO 10s [OFF]"
- flyButton.BorderColor3 = Color3.fromRGB(255, 255, 255)
- flyButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- end)
- -- CONFIRMACIÓN DE CARGA
- print("🎮 PROJECT YANDRO HUB - CARGADO EXITOSAMENTE")
- print("✅ Velocidad 30: FUNCIONAL")
- print("✅ Vuelo 10s: FUNCIONAL")
- print("✅ Arrastrable: FUNCIONAL")
- print("✅ Compatible con Móvil: FUNCIONAL")
- -- Mensaje de uso
- game:GetService("StarterGui"):SetCore("SendNotification", {
- Title = "PROJECT YANDRO",
- Text = "Hub cargado exitosamente!",
- Duration = 5
- })
Advertisement
Add Comment
Please, Sign In to add comment