Universal Script πŸ“Œ
1.4k Views
692 Executions

Open source fly script

Universal Script πŸ“Œ
thelogger123
thelogger123First script
6 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

My own fly script

View Raw
--[[ 
    PC-Friendly Fly Script + Safe Unstuck
    Toggle Fly: T
    Movement: WASD + Space (Up) + Ctrl (Down)
    Unstuck: Press U (if you get stuck)
]]

local Players = game:GetService("Players")
local UserInputService = game:GetService("UserInputService")
local RunService = game:GetService("RunService")
local TweenService = game:GetService("TweenService")

local player = Players.LocalPlayer
local camera = workspace.CurrentCamera

local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
local hrp = character:WaitForChild("HumanoidRootPart")

local flying = false
local flySpeed = 60

local bodyVelocity = Instance.new("BodyVelocity")
bodyVelocity.MaxForce = Vector3.new(1e5, 1e5, 1e5)

local bodyGyro = Instance.new("BodyGyro")
bodyGyro.MaxTorque = Vector3.new(1e5, 1e5, 1e5)

-- Simple UI
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "PCFlyGui"
screenGui.ResetOnSpawn = false
screenGui.Parent = player:WaitForChild("PlayerGui")

local frame = Instance.new("Frame")
frame.Size = UDim2.new(0, 200, 0, 70)
frame.Position = UDim2.new(0, 20, 0, 20)
frame.BackgroundColor3 = Color3.fromRGB(20, 20, 25)
frame.BackgroundTransparency = 0.25
frame.BorderSizePixel = 0


Comments

1
Log in to join the conversation. Login

[deleted]

Replying to a deleted comment
filo_o's profile picture
filo_o6 months ago

@thelogger123 Hii i tried ur script, my player is just stuck and cant move, i hope this helps😊

1

More universal scripts

See all
Script hub
6.8k
53.8k
Bumped 15 minutes ago
Universal Script πŸ“Œ
18
1
Approved 16 minutes ago
Script hub
13.1k
62.1k
Bumped 45 minutes ago
Script hub
2.4k
7.4k
Bumped 2 hours ago
Key System
Universal Script πŸ“Œ
1.3k
4.9k
Bumped 2 hours ago