Universal Script 📌
9 Views
1 Executions

Fly GUI

Universal Script 📌
alsotwentycharacters
alsotwentycharactersPublished 10
5 days ago · Updated

Reviewed by QueueSpeedDemonPaid revieweron How review works

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

Very basic open-source fly GUI! Just paste it in your executor and click run. It stays small, press the ENABLE button to turn on fly, and adjust the speed. NOT Originally made by me, however, i did decompile it.

View Raw
local CoreGui = game:GetService("CoreGui")
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local player = Players.LocalPlayer

local flySpeed = 100
local flying = false
local bodyVelocity, bodyGyro
local flightConnection

local function initialRise()
    local riseSpeed = 10
    local startTime = tick()
    local riseTime = 0.1

    while tick() - startTime < riseTime do
        bodyVelocity.Velocity = Vector3.new(0, riseSpeed, 0)
        RunService.RenderStepped:Wait()
    end
end

local function startFlying()
    if flying then return end
    flying = true

    local character = player.Character or player.CharacterAdded:Wait()
    character.Humanoid.PlatformStand = true

    bodyVelocity = Instance.new("BodyVelocity")
    bodyVelocity.MaxForce = Vector3.new(100000, 100000, 100000)
    bodyVelocity.Velocity = Vector3.new(0, 0, 0)
    bodyVelocity.Parent = character.HumanoidRootPart

    bodyGyro = Instance.new("BodyGyro")
    bodyGyro.MaxTorque = Vector3.new(100000, 100000, 100000)
    bodyGyro.CFrame = character.HumanoidRootPart.CFrame
    bodyGyro.Parent = character.HumanoidRootPart

    initialRise()



Comments

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