
33.8k Views
135 Executions
Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
open source fly :) how to use read script
_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
0Log in to join the conversation. Login
No comments yet. Be the first!







