Universal Script 📌
1.3k Views
110 Executions

z000rzkidd Fly GUI

Universal Script 📌
9 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

idk

View Raw
-- Fly GUI "z000rzkidd Fly GUI"
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local UserInputService = game:GetService("UserInputService")
local RunService = game:GetService("RunService")

-- Fly variables
local flying = false
local speed = 50
local maxSpeed = 250
local keysPressed = {}
local bv, bg

-- Fly functions
local function startFly()
    local char = LocalPlayer.Character
    if not char then return end
    local hrp = char:FindFirstChild("HumanoidRootPart")
    local humanoid = char:FindFirstChildOfClass("Humanoid")
    if not hrp or not humanoid then return end
    humanoid.PlatformStand = true

    if hrp:FindFirstChild("BodyVelocity") then hrp.BodyVelocity:Destroy() end
    if hrp:FindFirstChild("BodyGyro") then hrp.BodyGyro:Destroy() end

    bv = Instance.new("BodyVelocity")
    bv.MaxForce = Vector3.new(1e5,1e5,1e5)
    bv.Velocity = Vector3.new(0,0,0)
    bv.Parent = hrp

    bg = Instance.new("BodyGyro")
    bg.MaxTorque = Vector3.new(1e5,1e5,1e5)
    bg.CFrame = hrp.CFrame
    bg.Parent = hrp
end

local function stopFly()
    local char = LocalPlayer.Character
    if not char then return end
    local hrp = char:FindFirstChild("HumanoidRootPart")


Comments

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