Universal Script 📌
1.0k Views
1.0k Executions

fly tool

Universal Script 📌
sweet_orange
sweet_orangePublished 10
11 months ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

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

View Raw
-- 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


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!