---
title: "Fly by Tbao | Universal Roblox Script - ScriptBlox"
description: "Fly for any Roblox game: Script"
canonical_url: "https://scriptblox.com/script/Universal-Script-Fly-16603"
meta:
  "og:description": "Fly for any Roblox game: Script"
  "og:image": "https://scriptblox.com/images/script/2214824-1722593728101.png"
  "og:title": "Fly by Tbao | Universal Roblox Script - ScriptBlox"
  "twitter:description": "Fly for any Roblox game: Script"
  "twitter:image": "https://scriptblox.com/images/script/2214824-1722593728101.png"
  "twitter:title": "Fly by Tbao | Universal Roblox Script - ScriptBlox"
---

> Index of every page on this site: [llms.txt](https://scriptblox.com/llms.txt)

![Universal Script 📌](https://scriptblox.com/images/script/2214824-1722593728101.png)

# **Fly**

[**Universal Script 📌**](https://scriptblox.com/game/universal)**![Tbao](https://scriptblox.com/images/photo/6623187e5177c415565cf256-1730210753112.jpg) [Tbao](https://scriptblox.com/u/Tbao)1M views**

2 years ago

[**Get an executor**](https://scriptblox.com/executors?kind=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

Script

## **Updates **

1. Mar 27, 2025

   ****Script edited:**** Create script

[View Raw](https://scriptblox.com/raw/Universal-Script-Fly-16603)

```
-- Place this script in a LocalScript (for client-side)

local Players = game:GetService("Players")
local player = Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoidRootPart = character:WaitForChild("HumanoidRootPart")

local flying = true -- Set to true to enable flying
local flySpeed = 50 -- Adjust fly speed as needed

-- Function to handle flying
local function startFlying()
    local bodyGyro = Instance.new("BodyGyro")
    local bodyVelocity = Instance.new("BodyVelocity")

    bodyGyro.P = 9e4
    bodyGyro.maxTorque = Vector3.new(9e4, 9e4, 9e4)
    bodyGyro.cframe = humanoidRootPart.CFrame
    bodyGyro.Parent = humanoidRootPart

    bodyVelocity.velocity = Vector3.new(0, 0, 0)
    bodyVelocity.maxForce = Vector3.new(9e4, 9e4, 9e4)
    bodyVelocity.Parent = humanoidRootPart

    while flying do
        humanoidRootPart.CFrame = humanoidRootPart.CFrame
        bodyGyro.cframe = workspace.CurrentCamera.CFrame
        bodyVelocity.velocity = workspace.CurrentCamera.CFrame.LookVector * flySpeed

        local moveDirection = Vector3.new()
        local camera = workspace.CurrentCamera
        local cameraCFrame = camera.CFrame

        -- WASD controls for movement
        if player.Character.Humanoid.MoveDirection.Magnitude > 0 then
            moveDirection = cameraCFrame:VectorToWorldSpace(Vector3.new(player.Character.Humanoid.MoveDirection.X, 0, player.Character.Humanoid.MoveDirection.Z))
        end

        bodyVelocity.velocity = moveDirection * flySpeed


```

## **Comments **

**2**

Log in to join the conversation. [**Login **](https://scriptblox.com/login?redirect=/script/Universal-Script-Fly-16603)

![korealis's profile picture](https://scriptblox.com/images/photo/6af8421478072fcc5631b2cb-1794704393859.png)

[**korealis**](https://scriptblox.com/u/korealis)Lv 52 weeks ago

chatgpt (or claude (or gemini (or grok)))

1

![hiexe's profile picture](https://scriptblox.com/images/photo/66275aac5b0f75072d719ef2-1724525209248.jpg)

[**hiexe**](https://scriptblox.com/u/hiexe)Lv 92 years ago(edited)

chatgpt ahh code💀 "Place this script in a LocalScript (for client-side)"

1

```json
{"@context":"https://schema.org","@type":"SoftwareSourceCode","@id":"https://scriptblox.com/script/Universal-Script-Fly-16603#script","url":"https://scriptblox.com/script/Universal-Script-Fly-16603","name":"Fly","programmingLanguage":"Lua","runtimePlatform":"Roblox","author":{"@type":"Person","name":"Tbao","url":"https://scriptblox.com/u/Tbao"},"datePublished":"2024-08-02T10:15:28.171Z","image":"https://scriptblox.com/images/script/2214824-1722593728101.png","isAccessibleForFree":true}
```

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://scriptblox.com/#website","@type":"WebSite","description":"Search free Roblox scripts uploaded by the community, with live status for every major executor. Browse by game, copy the loadstring and run it in your executor.","inLanguage":"en","name":"ScriptBlox","url":"https://scriptblox.com/"},{"@id":"https://scriptblox.com/script/Universal-Script-Fly-16603#webpage","@type":"WebPage","description":"Fly for any Roblox game: Script","name":"Fly by Tbao | Universal Roblox Script - ScriptBlox","url":"https://scriptblox.com/script/Universal-Script-Fly-16603","breadcrumb":{"@id":"https://scriptblox.com/script/Universal-Script-Fly-16603#breadcrumb"},"isPartOf":{"@id":"https://scriptblox.com/#website"},"mainEntity":{"@id":"https://scriptblox.com/script/Universal-Script-Fly-16603#script"},"potentialAction":[{"@type":"ReadAction","target":["https://scriptblox.com/script/Universal-Script-Fly-16603"]}]},{"@id":"https://scriptblox.com/script/Universal-Script-Fly-16603#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://scriptblox.com","position":1},{"@type":"ListItem","name":"Universal","item":"https://scriptblox.com/game/universal","position":2},{"@type":"ListItem","name":"Fly","position":3}]}]}
```

## Sitemap

See the full [sitemap](https://scriptblox.com/sitemap.md) for all pages.
