Universal Script 📌
600 Views
31 Executions

RTVN fly walk

Universal Script 📌
Galaleu
GalaleuFirst script
9 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

Fly

View Raw
-- Fly Walk Script
-- LocalScript

local player = game.Players.LocalPlayer
local UserInputService = game:GetService("UserInputService")
local RunService = game:GetService("RunService")

local flying = false
local speed = 50

local bodyVelocity
local bodyGyro

local function startFly()
	local character = player.Character
	if not character then return end

	local hrp = character:WaitForChild("HumanoidRootPart")

	bodyVelocity = Instance.new("BodyVelocity")
	bodyVelocity.Velocity = Vector3.zero
	bodyVelocity.MaxForce = Vector3.new(1e5, 1e5, 1e5)
	bodyVelocity.Parent = hrp

	bodyGyro = Instance.new("BodyGyro")
	bodyGyro.MaxTorque = Vector3.new(1e5, 1e5, 1e5)
	bodyGyro.CFrame = hrp.CFrame
	bodyGyro.Parent = hrp

	RunService:BindToRenderStep("FlyWalk", Enum.RenderPriority.Character.Value, function()
		local moveDir = Vector3.zero
		local camera = workspace.CurrentCamera

		if UserInputService:IsKeyDown(Enum.KeyCode.W) then
			moveDir += camera.CFrame.LookVector
		end
		if UserInputService:IsKeyDown(Enum.KeyCode.S) then
			moveDir -= camera.CFrame.LookVector
		end
		if UserInputService:IsKeyDown(Enum.KeyCode.A) then


Comments

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

More universal scripts

See all
Universal Script 📌
5.2k
16.8k
Bumped 51 minutes ago
Script hub
116.4k
176.2k
Bumped 8 hours ago
Key System
Script hub
14.8k
73.1k
Bumped 9 hours ago
Universal Script 📌
35.6k
1.1M
Bumped 9 hours ago
Universal Script 📌
20.4k
206.5k
Bumped 9 hours ago