Fly Script jump
Key RequiredUniversal

Fly Script jump

Universal Scriptptio7402ptio7402 23.5K views 363 executesUpdated Feb 4, 2025
2.5/ 5(2 votes)
1150% Positive
Lua Script•50 lines (1792 chars)
local player = game.Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
local camera = game.Workspace.CurrentCamera

-- Create the Fly Button GUI
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = playerGui

local flyButton = Instance.new("TextButton")
flyButton.Size = UDim2.new(0, 200, 0, 50)
flyButton.Position = UDim2.new(0.5, -100, 0.9, -25)
flyButton.Text = "Enable Fly"
flyButton.Parent = screenGui

local flying = false

-- Function to enable/disable fly mode
local function toggleFly()
    flying = not flying
    if flying then
        flyButton.Text = "Disable Fly"
        -- Enable flying (this can be enhanced with a custom fly system)
        local bodyVelocity = Instance.new("BodyVelocity")
        bodyVelocity.MaxForce = Vector3.new(100000, 100000, 100000) -- To allow movement
        bodyVelocity.Velocity = Vector3.new(0, 50, 0) -- Change this to control the speed
        bodyVelocity.Parent = player.Character.HumanoidRootPart
    else
        flyButton.Text = "Enable Fly"
        -- Disable flying
        if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
            for _, obj in pairs(player.Character.HumanoidRootPart:GetChildren()) do
                if obj:IsA("BodyVelocity") then
                    obj:Destroy()
                end
            end
        end
    end
end

flyButton.MouseButton1Click:Connect(toggleFly)

-- Change the Skybox to red
local sky = Instance.new("Sky")
sky.SkyboxBk = "rbxassetid://6717740845" -- Replace with your red skybox asset ID
sky.SkyboxDn = "rbxassetid://6717740845"
sky.SkyboxFt = "rbxassetid://6717740845"
sky.SkyboxLf = "rbxassetid://6717740845"
sky.SkyboxRt = "rbxassetid://6717740845"
sky.SkyboxUp = "rbxassetid://6717740845"
sky.Parent = game.Lighting

Features & Information

Fly Enable Disable

Community Comments (1)

ptio7402ptio7402Feb 4, 2025(edited)

Nice

More Scripts for Universal Scripts