Universal Script 📌
33.8k Views
152 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

Updates

  1. Script edited: Create 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
32
0
Approved 20 minutes ago

Script hub

Kitty menu

Universal Script 📌
2.2k
24.3k
Bumped 1 hour ago
Script hub
28
0
Approved 1 hour ago
Universal Script 📌
1.4M
697.2k
Bumped 2 hours ago
Universal Script 📌
42
11
Approved 2 hours ago