Universal Script 📌
1.9k Views
1.6k Executions

Smooth Fly Script

Universal Script 📌
l4qic
l4qicFirst script
4 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

F to Toggle WASD To Move (Or Joystick If You Are On Mobile) You Can Adjust The Speed / Acceleration

View Raw
-- Made By l4qic
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
local camera = workspace.CurrentCamera

local UIS = game:GetService("UserInputService")
local RunService = game:GetService("RunService")

local flying = false
local speed = 100 -- adjust
local acceleration = 8
local currentVelocity = Vector3.new(0, 0, 0)

local bodyVelocity
local bodyGyro

local function startFlying()
	if flying then return end
	flying = true
	
	humanoid.PlatformStand = true
	
	bodyVelocity = Instance.new("BodyVelocity")
	bodyVelocity.MaxForce = Vector3.new(1e5, 1e5, 1e5)
	bodyVelocity.Velocity = Vector3.new(0, 0, 0)
	bodyVelocity.Parent = character:FindFirstChild("HumanoidRootPart")
	
	bodyGyro = Instance.new("BodyGyro")
	bodyGyro.MaxTorque = Vector3.new(1e5, 1e5, 1e5)
	bodyGyro.P = 10000
	bodyGyro.D = 500
	bodyGyro.Parent = character:FindFirstChild("HumanoidRootPart")
end

local function stopFlying()
	if not flying then return end
	flying = false
	
	if bodyVelocity then bodyVelocity:Destroy() end


Comments

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

More universal scripts

See all
Script hub
6.9k
53.8k
Bumped 38 minutes ago
Universal Script 📌
44
5
Approved 40 minutes ago
Script hub
13.1k
62.1k
Bumped 1 hour ago
Script hub
2.5k
7.4k
Bumped 2 hours ago
Key System
Universal Script 📌
1.3k
4.9k
Bumped 2 hours ago