Universal Script πŸ“Œ
23.8k Views
607 Executions

Fly Script jump

Universal Script πŸ“Œ
2 years 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

Fly Enable Disable

Updates

  1. Script edited: Create script

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


Comments

1
Log in to join the conversation. Login
ptio7402's profile picture
ptio7402Uploader2 years ago(edited)

Nice

1

More universal scripts

See all
Script hub
33.2k
298.5k
Bumped 3 hours ago
Script hub
23.7k
5.2k
Bumped 3 hours ago
Key System
Paid
High QualityΒ Offering
Universal Script πŸ“Œ
251
772
Bumped 3 hours ago
Universal Script πŸ“Œ
1.7k
31.0k
Bumped 3 hours ago
Script hub
4.1M
559.5k
Bumped 4 hours ago
Key System

Script hub

Hall of Fame #3

Verified script badgeOverflow 35 Supported Games

Script hub
5.5k
29.2k
Bumped 5 hours ago
Key System