-- [[ CONFIGURACIÓN DE LA INTERFAZ ]]
local ScreenGui = Instance.new("ScreenGui")
local ToggleButton = Instance.new("TextButton")
local MainMenu = Instance.new("Frame")
local Title = Instance.new("TextLabel")
local FlyToggle = Instance.new("TextButton")
local SpeedInput = Instance.new("TextBox")
local NoClipToggle = Instance.new("TextButton")
ScreenGui.Parent = game.CoreGui
ScreenGui.ResetOnSpawn = false
-- Botón Flotante para Abrir/Cerrar
ToggleButton.Name = "ToggleButton"
ToggleButton.Parent = ScreenGui
ToggleButton.Size = UDim2.new(0, 60, 0, 60)
ToggleButton.Position = UDim2.new(0, 10, 0, 10)
ToggleButton.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
ToggleButton.TextColor3 = Color3.fromRGB(255, 255, 255)
ToggleButton.Text = "Menú"
ToggleButton.Font = Enum.Font.SourceSansBold
ToggleButton.TextSize = 18
ToggleButton.Active = true
ToggleButton.Draggable = true
-- Menú Principal
MainMenu.Name = "MainMenu"
MainMenu.Parent = ScreenGui
MainMenu.Size = UDim2.new(0, 220, 0, 280)
MainMenu.Position = UDim2.new(0.5, -110, 0.5, -140)
MainMenu.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
MainMenu.Visible = false
MainMenu.Active = true
MainMenu.Draggable = true
Title.Size = UDim2.new(1, 0, 0, 40)
Title.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
Title.TextColor3 = Color3.fromRGB(255, 255, 255)
Title.Text = "Hacks Menú"
Title.TextSize = 20
Title.Font = Enum.Font.SourceSansBold
Title.Parent = MainMenu
-- [[ LÓGICA DEL MENÚ (ABRIR/CERRAR) ]]
ToggleButton.MouseButton1Click:Connect(function()
MainMenu.Visible = not MainMenu.Visible
end)
-- [[ FUNCIÓN: VOLAR CON VELOCIDAD ]]
FlyToggle.Size = UDim2.new(0, 180, 0, 40)
FlyToggle.Position = UDim2.new(0, 20, 0, 60)
FlyToggle.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
FlyToggle.TextColor3 = Color3.fromRGB(255, 255, 255)
FlyToggle.Text = "Volar: OFF"
FlyToggle.Parent = MainMenu
SpeedInput.Size = UDim2.new(0, 180, 0, 40)
SpeedInput.Position = UDim2.new(0, 20, 0, 110)
SpeedInput.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
SpeedInput.TextColor3 = Color3.fromRGB(255, 255, 255)
SpeedInput.Text = "50" -- Velocidad por defecto
SpeedInput.PlaceholderText = "Velocidad de Vuelo"
SpeedInput.Parent = MainMenu
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local Flying = false
local FlySpeed = 50
FlyToggle.MouseButton1Click:Connect(function()
Flying = not Flying
if Flying then
FlyToggle.Text = "Volar: ON"
FlyToggle.BackgroundColor3 = Color3.fromRGB(0, 150, 0)
-- Ejecutar vuelo
local Camera = workspace.CurrentCamera
local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
local Root = Character:WaitForChild("HumanoidRootPart")
local Humanoid = Character:WaitForChild("Humanoid")
local BodyVelocity = Instance.new("BodyVelocity")
BodyVelocity.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
BodyVelocity.Velocity = Vector3.new(0, 0.1, 0)
BodyVelocity.Parent = Root
local BodyGyro = Instance.new("BodyGyro")
BodyGyro.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
BodyGyro.CFrame = Root.CFrame
BodyGyro.Parent = Root
Humanoid.PlatformStand = true
task.spawn(function()
while Flying and Character and Root and Root.Parent do
task.wait()
FlySpeed = tonumber(SpeedInput.Text) or 50
local MoveDirection = Humanoid.MoveDirection
BodyVelocity.Velocity = MoveDirection * FlySpeed
BodyGyro.CFrame = Camera.CFrame
-- Si no se mueve, mantener flotando estable
if MoveDirection.Magnitude == 0 then
BodyVelocity.Velocity = Vector3.new(0, 0, 0)
end
end
-- Limpiar al apagar
BodyVelocity:Destroy()
BodyGyro:Destroy()
if Humanoid then Humanoid.PlatformStand = false end
end)
else
FlyToggle.Text = "Volar: OFF"
FlyToggle.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
end
end)
-- [[ FUNCIÓN: NOCLIP (ATRAVESAR PAREDES) ]]
NoClipToggle.Size = UDim2.new(0, 180, 0, 40)
NoClipToggle.Position = UDim2.new(0, 20, 0, 170)
NoClipToggle.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
NoClipToggle.TextColor3 = Color3.fromRGB(255, 255, 255)
NoClipToggle.Text = "Noclip: OFF"
NoClipToggle.Parent = MainMenu
local Noclip = false
NoClipToggle.MouseButton1Click:Connect(function()
Noclip = not Noclip
if Noclip then
NoClipToggle.Text = "Noclip: ON"
NoClipToggle.BackgroundColor3 = Color3.fromRGB(0, 150, 0)
else
NoClipToggle.Text = "Noclip: OFF"
NoClipToggle.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
end
end)
game:GetService("RunService").Stepped:Connect(function()
if Noclip then
local Character = LocalPlayer.Character
if Character then
for _, part in pairs(Character:GetChildren()) do
if part:IsA("BasePart") then
part.CanCollide = false
end
end
end
end
end)
Comments
No comments yet
Be the first to share your thoughts!