Universal Script πŸ“Œ
1.8k Views
5.4k Executions

Simple Fly Script

Universal Script πŸ“Œ
ziynet7bfkv0akinci
ziynet7bfkv0akinciFirst 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

Simple Fly Script

View Raw
local Players = game:GetService("Players")
local UserInputService = game:GetService("UserInputService")
local RunService = game:GetService("RunService")

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

local flying = false
local speed = 75

local bodyVelocity
local bodyGyro

local function startFlying()
	if flying then return end
	flying = true

	bodyVelocity = Instance.new("BodyVelocity")
	bodyVelocity.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
	bodyVelocity.Parent = rootPart

	bodyGyro = Instance.new("BodyGyro")
	bodyGyro.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
	bodyGyro.P = 10000
	bodyGyro.Parent = rootPart

	humanoid.PlatformStand = true

	RunService:BindToRenderStep("Fly", Enum.RenderPriority.Character.Value, function()
		if not flying then return end

		local camera = workspace.CurrentCamera
		local moveDirection = humanoid.MoveDirection

		bodyVelocity.Velocity = moveDirection * speed
		bodyGyro.CFrame = camera.CFrame
	end)
end


Comments

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

More universal scripts

See all
Script hub
33.1k
298.1k
Bumped 39 minutes ago
Script hub
23.6k
5.2k
Bumped 39 minutes ago
Key System
Paid
High QualityΒ Offering
Universal Script πŸ“Œ
182
554
Bumped 1 hour ago
Universal Script πŸ“Œ
1.6k
30.3k
Bumped 1 hour ago
Script hub
4.1M
558.5k
Bumped 2 hours ago
Key System

Script hub

Hall of Fame #3

Verified script badgeOverflow 35 Supported Games

Script hub
5.5k
28.9k
Bumped 2 hours ago
Key System
Script hub
14.0k
28.5k
Bumped 4 hours ago