Universal Script 📌
33.8k Views
135 Executions

fly

Universal Script 📌
proohio
proohioPublished 10
2 years 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

open source fly :) how to use read script

View Raw
_G.flyEnabled = true -- toggle fly true = fly false = unfly

-- fly by proohio
-- this is a bit skidded but shh

local plr = game.Players.LocalPlayer
local char = plr.Character or plr.CharacterAdded:Wait()
local root = char:WaitForChild("HumanoidRootPart")
local humanoid = char:FindFirstChildOfClass("Humanoid")

local flying = false
local speed = 0
local maxSpeed = 50
local acceleration = 2
local controls = { f = 0, b = 0, l = 0, r = 0, u = 0, d = 0 }
local bodyGyro, bodyVelocity

function StartFlying()
	if not _G.flyEnabled or not root then return end
	flying = true

	bodyGyro = Instance.new("BodyGyro")
	bodyGyro.P = 9e4
	bodyGyro.maxTorque = Vector3.new(9e9, 9e9, 9e9)
	bodyGyro.CFrame = root.CFrame
	bodyGyro.Parent = root

	bodyVelocity = Instance.new("BodyVelocity")
	bodyVelocity.velocity = Vector3.zero
	bodyVelocity.maxForce = Vector3.new(9e9, 9e9, 9e9)
	bodyVelocity.Parent = root

	humanoid.PlatformStand = true
	while flying and _G.flyEnabled do
		task.wait()
		local moveDirection = Vector3.zero

		if controls.f + controls.b ~= 0 or controls.l + controls.r ~= 0 or controls.u + controls.d ~= 0 then
			speed = math.min(speed + acceleration, maxSpeed)
		else


Comments

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

Tags

More universal scripts

See all
Script hub
5.5M
1.0M
Bumped 3 hours ago
Key System
Script hub
150.3k
462.4k
Bumped 4 hours ago
Key System

Script hub

Hall of Fame #6

Verified script badgeAcro Hub | Easy Key System

Script hub
3.2k
3.7k
Bumped 4 hours ago
Key System
Universal Script 📌
718
699
Bumped 5 hours ago
Script hub
21.5k
77.0k
Bumped 7 hours ago
Key System