fly tool
Key RequiredUniversal

fly tool

Universal Scriptsweet_orangesweet_orange 996 views 635 executesUpdated Dec 28, 2025
Unrated
00
Lua Script•52 lines (1409 chars)
-- Tạo Tool mới trong Backpack
local player = game.Players.LocalPlayer
local flyTool = Instance.new("Tool")
flyTool.Name = "Fly Tool"
flyTool.RequiresHandle = false
flyTool.Parent = player.Backpack

local flying = false
local speed = 70 -- Tốc độ bay
local bv, bg

-- Hàm bắt đầu bay
local function startFly()
    flying = true
    local root = player.Character:WaitForChild("HumanoidRootPart")
    
    -- Tạo lực giữ độ cao và hướng
    bg = Instance.new("BodyGyro")
    bg.Name = "FlyGyro"
    bg.Parent = root
    bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
    bg.P = 9e4
    
    bv = Instance.new("BodyVelocity")
    bv.Name = "FlyVelocity"
    bv.Parent = root
    bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
    
    -- Vòng lặp cập nhật hướng theo Camera
    task.spawn(function()
        while flying do
            task.wait()
            player.Character.Humanoid.PlatformStand = true
            bv.velocity = workspace.CurrentCamera.CFrame.LookVector * speed
            bg.cframe = workspace.CurrentCamera.CFrame
        end
    end)
end

-- Hàm dừng bay
local function stopFly()
    flying = false
    player.Character.Humanoid.PlatformStand = false
    if bv then bv:Destroy() end
    if bg then bg:Destroy() end
end

-- Sự kiện khi cầm Tool (Equip) và cất Tool (Unequip)
flyTool.Equipped:Connect(startFly)
flyTool.Unequipped:Connect(stopFly)

print("Fly Tool đã được thêm vào Backpack của bạn!")

Features & Information

gives you fly tool {cant stop tho} made by ai

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts