Universal Script 📌
4.2k Views
5.2k Executions

Fly gui

Universal Script 📌
Freehacks
FreehacksPublished 10
7 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

Its a fly gui, thats all

View Raw
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()

local screenGui = Instance.new("ScreenGui", player.PlayerGui)
screenGui.Name = "MudindaFlyGui"

local mainButton = Instance.new("TextButton", screenGui)
mainButton.Size = UDim2.new(0, 100, 0, 50)
mainButton.Position = UDim2.new(0.5, -50, 0.8, 0)
mainButton.Text = "FLY: OFF"
mainButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
mainButton.TextColor3 = Color3.fromRGB(255, 255, 255)
mainButton.Font = Enum.Font.SourceSansBold
mainButton.TextSize = 20

local flying = false
local speed = 50
local bv, bg

mainButton.MouseButton1Click:Connect(function()
    flying = not flying
    if flying then
        mainButton.Text = "FLY: ON"
        mainButton.BackgroundColor3 = Color3.fromRGB(0, 255, 0)
        
        local char = player.Character
        local root = char:WaitForChild("HumanoidRootPart")
        
        bg = Instance.new("BodyGyro", root)
        bg.P = 9e4
        bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
        bg.cframe = root.CFrame
        
        bv = Instance.new("BodyVelocity", root)
        bv.velocity = Vector3.new(0, 0, 0)
        bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
        
        spawn(function()
            while flying do
                task.wait()


Comments

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

More universal scripts

See all