Universal Script 📌
33.4k Views
788 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
Universal Script 📌
23
0
Approved 29 minutes ago
Script hub
3.9k
14.8k
Bumped 31 minutes ago
Universal Script 📌
36
2
Approved 49 minutes ago
Script hub
306.2k
1.1M
Bumped 1 hour ago
Key System

Script hub

#17 this month

Verified script badgeAxon Hub | 100+ Games & 3900+ Features

Script hub
2.0k
9.0k
Bumped 2 hours ago
Universal Script 📌
152
10
Approved 3 hours ago