Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- PROJECT YANDRO HUB - VERSIÓN MÓVIL
- -- Corregido: Movible y compatible con touch
- local Players = game:GetService("Players")
- local UserInputService = game:GetService("UserInputService")
- local RunService = game:GetService("RunService")
- local TweenService = game:GetService("TweenService")
- local player = Players.LocalPlayer
- -- 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, 320, 0, 220)
- MainFrame.Position = UDim2.new(0.1, 0, 0.1, 0)
- MainFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- MainFrame.BorderSizePixel = 0
- MainFrame.Parent = ScreenGui
- -- Bordes blanco y negro
- local OuterBorder = Instance.new("UIStroke")
- OuterBorder.Color = Color3.fromRGB(255, 255, 255)
- OuterBorder.Thickness = 3
- OuterBorder.Parent = MainFrame
- local InnerBorder = Instance.new("Frame")
- InnerBorder.Size = UDim2.new(1, -6, 1, -6)
- InnerBorder.Position = UDim2.new(0, 3, 0, 3)
- InnerBorder.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- InnerBorder.BorderSizePixel = 0
- InnerBorder.Parent = MainFrame
- -- Título (ahora es el área para arrastrar)
- local Title = Instance.new("TextLabel")
- Title.Size = UDim2.new(1, 0, 0, 40)
- Title.Position = UDim2.new(0, 0, 0, 0)
- Title.BackgroundTransparency = 0.8
- Title.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
- Title.TextColor3 = Color3.fromRGB(255, 255, 255)
- Title.Text = "PROJECT YANDRO - TOCA PARA MOVER"
- Title.Font = Enum.Font.GothamBold
- Title.TextSize = 14
- Title.Parent = InnerBorder
- -- Separador
- local Separator = Instance.new("Frame")
- Separator.Size = UDim2.new(1, -20, 0, 1)
- Separator.Position = UDim2.new(0, 10, 0, 45)
- Separator.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Separator.BorderSizePixel = 0
- Separator.Parent = InnerBorder
- -- Estados
- local speedBoostEnabled = false
- local flyEnabled = false
- local flyConnection = nil
- local flyStartTime = 0
- local bodyVelocity = nil
- -- Función crear botones móviles
- local function createMobileButton(name, text, position, callback)
- local button = Instance.new("TextButton")
- button.Name = name
- button.Size = UDim2.new(0, 280, 0, 40)
- button.Position = position
- button.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
- button.BorderColor3 = Color3.fromRGB(255, 255, 255)
- button.BorderSizePixel = 2
- button.TextColor3 = Color3.fromRGB(255, 255, 255)
- button.Text = text
- button.Font = Enum.Font.GothamBold
- button.TextSize = 14
- button.Parent = InnerBorder
- -- Efectos táctiles
- button.MouseButton1Down:Connect(function()
- button.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
- end)
- button.MouseButton1Up:Connect(function()
- button.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
- end)
- button.TouchTap:Connect(function()
- callback()
- end)
- button.MouseButton1Click:Connect(callback)
- return button
- end
- -- Función 1: Velocidad 30 (CORREGIDA)
- local speedButton = createMobileButton("SpeedBoost", "⚡ VELOCIDAD 30 [OFF]", UDim2.new(0, 20, 0, 60), 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 10 segundos (MEJORADA)
- local flyButton = createMobileButton("FlyBoost", "🕊️ VUELO 10s [OFF]", UDim2.new(0, 20, 0, 110), function()
- if flyEnabled then return end -- Evitar múltiples activaciones
- flyEnabled = true
- flyButton.Text = "🕊️ VUELO 10s [ACTIVO]"
- flyButton.BorderColor3 = Color3.fromRGB(0, 255, 0)
- flyButton.TextColor3 = Color3.fromRGB(0, 255, 0)
- flyStartTime = tick()
- local character = player.Character
- if character and character:FindFirstChild("Humanoid") then
- character.Humanoid.PlatformStand = true
- -- Crear BodyVelocity para vuelo suave
- if bodyVelocity then
- bodyVelocity:Destroy()
- end
- bodyVelocity = Instance.new("BodyVelocity")
- bodyVelocity.Velocity = Vector3.new(0, 0, 0)
- bodyVelocity.MaxForce = Vector3.new(4000, 4000, 4000)
- bodyVelocity.Parent = character:FindFirstChild("HumanoidRootPart")
- flyConnection = RunService.Heartbeat:Connect(function()
- local currentTime = tick()
- local elapsedTime = currentTime - flyStartTime
- -- Desactivar después de 10 segundos
- if elapsedTime >= 10 then
- if flyConnection then
- flyConnection:Disconnect()
- flyConnection = nil
- end
- if bodyVelocity then
- bodyVelocity:Destroy()
- bodyVelocity = nil
- end
- flyEnabled = false
- flyButton.Text = "🕊️ VUELO 10s [OFF]"
- flyButton.BorderColor3 = Color3.fromRGB(255, 255, 255)
- flyButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- -- Restaurar estado normal
- if character and character:FindFirstChild("Humanoid") then
- character.Humanoid.PlatformStand = false
- character.Humanoid.WalkSpeed = speedBoostEnabled and 30 or 16
- end
- return
- end
- -- Control de vuelo (compatible con móvil)
- if character and character:FindFirstChild("HumanoidRootPart") then
- local root = character.HumanoidRootPart
- local moveDirection = Vector3.new(0, 0, 0)
- -- Detectar controles táctiles o teclado
- if UserInputService:IsKeyDown(Enum.KeyCode.W) or UserInputService:GetFocusedTextBox() == nil 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 * 25
- else
- bodyVelocity.Velocity = Vector3.new(0, 0, 0)
- end
- end
- end)
- end
- end)
- -- Información mejorada
- local InfoText = Instance.new("TextLabel")
- InfoText.Size = UDim2.new(1, -20, 0, 50)
- InfoText.Position = UDim2.new(0, 10, 0, 160)
- InfoText.BackgroundTransparency = 1
- InfoText.TextColor3 = Color3.fromRGB(200, 200, 200)
- InfoText.Text = "📱 TOCA LOS BOTONES\n⚡ Velocidad: 30 | 🕊️ Vuelo: 10s\n🎮 Controles: W/A/S/D + Space/Shift"
- InfoText.Font = Enum.Font.Gotham
- InfoText.TextSize = 11
- InfoText.TextXAlignment = Enum.TextXAlignment.Left
- InfoText.TextYAlignment = Enum.TextYAlignment.Top
- InfoText.Parent = InnerBorder
- -- SISTEMA DE ARRASTRE MEJORADO
- local dragging = false
- local dragStart = nil
- local startPos = nil
- 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
- -- Efecto visual al arrastrar
- Title.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
- end
- end)
- Title.InputEnded:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseButton1 then
- dragging = false
- Title.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
- end
- end)
- UserInputService.InputChanged:Connect(function(input)
- if dragging and (input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseMovement) then
- if dragStart and startPos 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
- end)
- -- Limpieza al salir
- player.CharacterAdded:Connect(function(character)
- -- Resetear estados cuando reaparece el personaje
- speedBoostEnabled = false
- flyEnabled = false
- if flyConnection then
- flyConnection:Disconnect()
- flyConnection = nil
- end
- if bodyVelocity then
- bodyVelocity:Destroy()
- bodyVelocity = nil
- end
- -- Actualizar 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)
- -- Mensaje de carga mejorado
- print("🎮 PROJECT YANDRO HUB CARGADO")
- print("📱 COMPATIBLE CON MÓVIL")
- print("⚡ Velocidad: 30 | 🕊️ Vuelo: 10s")
- print("👆 Toca el título para mover el hub")
Advertisement
Add Comment
Please, Sign In to add comment