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
139
986
Bumped 26 minutes ago

Script hub

Lunyx Hub

Script hub
120.8k
221.2k
Bumped 44 minutes ago
Key System
Script hub
10.5k
200.6k
Bumped 1 hour ago

Script hub

KeylessVerified script badgeIRIDIUM HUB | #1

Script hub
33.3k
299.2k
Bumped 4 hours ago
Script hub
23.7k
5.3k
Bumped 4 hours ago
Key System
Paid
High QualityΒ Offering
Universal Script πŸ“Œ
304
977
Bumped 4 hours ago