
17.5k Views
155 Executions
Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
Press F to start flying. F again to stop flying. For every game.
--[[
WARNING: Heads up! This script has not been verified by ScriptBlox. Use at your own risk!
Toggle Fly: Press 'F' to start flying / stop flying.
]]
local UserInputService = game:GetService("UserInputService")
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
local flying = false
local speed = 50 -- Speed of flight (adjustable)
local flyHeight = 5 -- Height above the ground when flying
-- BodyVelocity used for flying
local bodyVelocity = Instance.new("BodyVelocity")
bodyVelocity.MaxForce = Vector3.new(100000, 100000, 100000) -- Make sure the force is high enough to allow flying
bodyVelocity.Velocity = Vector3.new(0, 0, 0)
bodyVelocity.P = 10000
-- Create a simple UI to show flying status
local flyingLabel = Instance.new("TextLabel")
flyingLabel.Size = UDim2.new(0, 200, 0, 50)
flyingLabel.Position = UDim2.new(0.5, -100, 0.5, -25)
flyingLabel.BackgroundTransparency = 1
flyingLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
flyingLabel.TextScaled = true
flyingLabel.Text = "Press 'F' to Toggle Fly"
flyingLabel.Parent = player.PlayerGui:WaitForChild("ScreenGui")
-- Function to toggle flying on/off
local function toggleFly()
if flying then
-- Disable flying: remove the BodyVelocity and return the character to normal state
bodyVelocity.Parent = nil
humanoid.PlatformStand = false
flying = false
flyingLabel.Text = "Press 'F' to Toggle Fly"










((((MODERATER)))) PLEZ APPROVE; ITS NOT RIVALS BUT ITS SOMETHING TO PROVE IM 7 DAYS OLD ACCOUNT.
I got it from Chatgpt
Never tested
don't work