Universal Script πŸ“Œ
33.2k Views
603 Executions

fly script press f

Universal Script πŸ“Œ
Blahhurdle
BlahhurdleFirst script
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

idk lets you fly

View Raw
-- LocalScript (StarterPlayerScripts)
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
local UIS = game:GetService("UserInputService")
local RunService = game:GetService("RunService")

-- Change walkspeed to 50
humanoid.WalkSpeed = 50

-- Fly variables
local flying = false
local speed = 50
local velocity = Instance.new("BodyVelocity")
local gyro = Instance.new("BodyGyro")
local direction = Vector3.new()

-- Setup fly controls
local function startFlying()
	if flying then return end
	flying = true

	velocity.MaxForce = Vector3.new(100000, 100000, 100000)
	velocity.Velocity = Vector3.new(0, 0, 0)
	velocity.P = 1250
	velocity.Parent = character.HumanoidRootPart

	gyro.MaxTorque = Vector3.new(400000, 400000, 400000)
	gyro.CFrame = character.HumanoidRootPart.CFrame
	gyro.P = 3000
	gyro.Parent = character.HumanoidRootPart

	RunService.RenderStepped:Connect(function()
		if flying then
			local cam = workspace.CurrentCamera
			local moveDir = Vector3.new()
			if UIS:IsKeyDown(Enum.KeyCode.W) then moveDir += cam.CFrame.LookVector end
			if UIS:IsKeyDown(Enum.KeyCode.S) then moveDir -= cam.CFrame.LookVector end
			if UIS:IsKeyDown(Enum.KeyCode.A) then moveDir -= cam.CFrame.RightVector end
			if UIS:IsKeyDown(Enum.KeyCode.D) then moveDir += cam.CFrame.RightVector end


Comments

2
Log in to join the conversation. Login
Blahhurdle's profile picture
BlahhurdleUploader2 years ago

what does that even mean?

1
MiniCapy's profile picture
MiniCapy2 years ago

Π’Π°Ρƒ Π΄Π° это ΠΆΠ΅ Π³ΠΏΡ‚

1

More universal scripts

See all
Script hub
11.0k
19.0k
Bumped 9 minutes ago
Key System
Universal Script πŸ“Œ
25.9k
65.6k
Bumped 17 minutes ago
Key System
Script hub
19.7k
92.1k
Bumped 37 minutes ago
Key System
Script hub
420
665
Bumped 1 hour ago
Key System
Script hub
3.0M
15.3M
Bumped 9 hours ago

Script hub

Hall of Fame #1

KeylessVerified script badgeYARHM Hub KEYLESS 2026

Universal Script πŸ“Œ
4.8k
13.6k
Bumped 9 hours ago
Script hub
144.2k
430.9k
Bumped 10 hours ago
Key System

Script hub

Hall of Fame #6

Verified script badgeAcro Hub | Easy Key System