Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- PROJECT YANDRO HUB
- -- By: AI Assistant
- -- Características: Bordes blanco/negro, 2 funciones específicas
- local Players = game:GetService("Players")
- local UserInputService = game:GetService("UserInputService")
- local TweenService = game:GetService("TweenService")
- local RunService = game:GetService("RunService")
- local player = Players.LocalPlayer
- local mouse = player:GetMouse()
- -- Crear GUI principal
- local ScreenGui = Instance.new("ScreenGui")
- ScreenGui.Name = "ProjectYandroHub"
- ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- ScreenGui.Parent = player:WaitForChild("PlayerGui")
- -- Marco principal con bordes blanco/negro
- local MainFrame = Instance.new("Frame")
- MainFrame.Size = UDim2.new(0, 300, 0, 200)
- MainFrame.Position = UDim2.new(0.5, -150, 0.5, -100)
- MainFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- MainFrame.BorderSizePixel = 0
- MainFrame.Parent = ScreenGui
- -- Borde exterior blanco
- local OuterBorder = Instance.new("UIStroke")
- OuterBorder.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
- OuterBorder.Color = Color3.fromRGB(255, 255, 255)
- OuterBorder.Thickness = 3
- OuterBorder.Parent = MainFrame
- -- Borde interior negro
- 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 PROJECT YANDRO
- local Title = Instance.new("TextLabel")
- Title.Size = UDim2.new(1, 0, 0, 40)
- Title.Position = UDim2.new(0, 0, 0, 10)
- Title.BackgroundTransparency = 1
- Title.TextColor3 = Color3.fromRGB(255, 255, 255)
- Title.Text = "PROJECT YANDRO"
- Title.Font = Enum.Font.GothamBold
- Title.TextSize = 18
- Title.Parent = InnerBorder
- -- Línea separadora
- local Separator = Instance.new("Frame")
- Separator.Size = UDim2.new(1, -20, 0, 1)
- Separator.Position = UDim2.new(0, 10, 0, 50)
- Separator.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Separator.BorderSizePixel = 0
- Separator.Parent = InnerBorder
- -- Variables de estado
- local speedBoostEnabled = false
- local flyEnabled = false
- local flyConnection = nil
- local flyStartTime = 0
- -- Función para crear botones con estilo Yandro
- local function createYandroButton(name, text, position, callback)
- local buttonFrame = Instance.new("Frame")
- buttonFrame.Size = UDim2.new(0, 130, 0, 35)
- buttonFrame.Position = position
- buttonFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- buttonFrame.BorderSizePixel = 0
- buttonFrame.Parent = InnerBorder
- local buttonBorder = Instance.new("UIStroke")
- buttonBorder.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
- buttonBorder.Color = Color3.fromRGB(255, 255, 255)
- buttonBorder.Thickness = 2
- buttonBorder.Parent = buttonFrame
- local button = Instance.new("TextButton")
- button.Name = name
- button.Size = UDim2.new(1, -4, 1, -4)
- button.Position = UDim2.new(0, 2, 0, 2)
- button.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- button.TextColor3 = Color3.fromRGB(255, 255, 255)
- button.Text = text
- button.Font = Enum.Font.Gotham
- button.TextSize = 12
- button.Parent = buttonFrame
- button.MouseButton1Click:Connect(callback)
- return button
- end
- -- FUNCIÓN 1: VELOCIDAD MEJORADA
- local speedButton = createYandroButton("SpeedBoost", "SPEED BOOST: [OFF]", UDim2.new(0, 20, 0, 70), function()
- speedBoostEnabled = not speedBoostEnabled
- local character = player.Character
- if character and character:FindFirstChild("Humanoid") then
- if speedBoostEnabled then
- character.Humanoid.WalkSpeed = 50 -- Velocidad aumentada
- speedButton.Text = "SPEED BOOST: [ON]"
- speedButton.TextColor3 = Color3.fromRGB(0, 255, 0) -- Verde cuando está activo
- else
- character.Humanoid.WalkSpeed = 16 -- Velocidad normal
- speedButton.Text = "SPEED BOOST: [OFF]"
- speedButton.TextColor3 = Color3.fromRGB(255, 255, 255) -- Blanco cuando está inactivo
- end
- end
- end)
- -- FUNCIÓN 2: VUELO TEMPORAL
- local flyButton = createYandroButton("FlyBoost", "FLY BOOST: [OFF]", UDim2.new(0, 20, 0, 115), function()
- flyEnabled = not flyEnabled
- if flyEnabled then
- flyButton.Text = "FLY BOOST: [ACTIVE]"
- flyButton.TextColor3 = Color3.fromRGB(0, 255, 0)
- flyStartTime = tick()
- -- Activar vuelo
- local character = player.Character
- if character and character:FindFirstChild("Humanoid") then
- character.Humanoid.PlatformStand = true
- -- Conexión para el vuelo
- 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
- flyEnabled = false
- flyButton.Text = "FLY BOOST: [OFF]"
- flyButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- -- Restaurar estado normal
- if character and character:FindFirstChild("Humanoid") then
- character.Humanoid.PlatformStand = false
- end
- return
- end
- -- Control de vuelo cada 1 segundo (concepto)
- if math.floor(elapsedTime) ~= math.floor(elapsedTime - 0.033) then
- -- Cada segundo aproximadamente
- if character and character:FindFirstChild("HumanoidRootPart") then
- local root = character.HumanoidRootPart
- -- Movimiento de vuelo básico
- if UserInputService:IsKeyDown(Enum.KeyCode.W) then
- root.Velocity = root.CFrame.LookVector * 50
- elseif UserInputService:IsKeyDown(Enum.KeyCode.S) then
- root.Velocity = -root.CFrame.LookVector * 50
- elseif UserInputService:IsKeyDown(Enum.KeyCode.A) then
- root.Velocity = -root.CFrame.RightVector * 50
- elseif UserInputService:IsKeyDown(Enum.KeyCode.Space) then
- root.Velocity = Vector3.new(0, 50, 0)
- elseif UserInputService:IsKeyDown(Enum.KeyCode.LeftShift) then
- root.Velocity = Vector3.new(0, -50, 0)
- else
- root.Velocity = Vector3.new(root.Velocity.X * 0.9, root.Velocity.Y * 0.9, root.Velocity.Z * 0.9)
- end
- end
- end
- end)
- end
- else
- -- Desactivar vuelo manualmente
- if flyConnection then
- flyConnection:Disconnect()
- flyConnection = nil
- end
- flyButton.Text = "FLY BOOST: [OFF]"
- flyButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- -- Restaurar estado normal
- local character = player.Character
- if character and character:FindFirstChild("Humanoid") then
- character.Humanoid.PlatformStand = false
- end
- end
- end)
- -- Texto informativo
- local InfoText = Instance.new("TextLabel")
- InfoText.Size = UDim2.new(1, -20, 0, 40)
- InfoText.Position = UDim2.new(0, 10, 0, 160)
- InfoText.BackgroundTransparency = 1
- InfoText.TextColor3 = Color3.fromRGB(200, 200, 200)
- InfoText.Text = "Fly: W/S/A/D + Space/Shift\nDuración: 10 segundos"
- InfoText.Font = Enum.Font.Gotham
- InfoText.TextSize = 10
- InfoText.TextXAlignment = Enum.TextXAlignment.Left
- InfoText.Parent = InnerBorder
- -- Sistema de arrastre para la ventana
- local dragging = false
- local dragInput, dragStart, startPos
- MainFrame.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 then
- dragging = true
- dragStart = input.Position
- startPos = MainFrame.Position
- input.Changed:Connect(function()
- if input.UserInputState == Enum.UserInputState.End then
- dragging = false
- end
- end)
- end
- end)
- MainFrame.InputChanged:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseMovement then
- dragInput = input
- end
- end)
- UserInputService.InputChanged:Connect(function(input)
- if input == dragInput and dragging 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)
- print("🎮 PROJECT YANDRO HUB loaded successfully!")
- print("⚡ Functions: Speed Boost & Temporary Flight")
- print("⏱️ Flight duration: 10 seconds auto-disable")
Advertisement
Add Comment
Please, Sign In to add comment