Op partfly script
Key RequiredUniversal

Op partfly script

Universal ScriptSomebodyyouusedtoknSomebodyyouusedtokn 536 views 86 executesUpdated Jan 16, 2026
Unrated
00
Lua Script•92 lines (2720 chars)
--PartFly
--All creadits to Somebodythatyouusedtoknow @ scriptblox.com
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local Players = game:GetService("Players")

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

--CONFIG
local OFFSET = Vector3.new(0, -3, 0)
local PLATFORM_SIZE = Vector3.new(6, 0.5, 6)
local KEYBIND = Enum.KeyCode.LeftControl

--TRACKING
local isFalling = false
local platformActive = true
local platformPos = rootPart.Position + OFFSET

--UI
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "AirWalkGui"
screenGui.ResetOnSpawn = false
screenGui.Parent = player:WaitForChild("PlayerGui")

local menuFrame = Instance.new("Frame")
menuFrame.Size = UDim2.new(0, 180, 0, 60)
menuFrame.Position = UDim2.new(0, 20, 0.5, -30) -- Center-left
menuFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
menuFrame.BorderSizePixel = 0
menuFrame.Parent = screenGui

local uiCorner = Instance.new("UICorner")
uiCorner.CornerRadius = UDim.new(0, 8)
uiCorner.Parent = menuFrame

local infoLabel = Instance.new("TextLabel")
infoLabel.Size = UDim2.new(1, 0, 1, 0)
infoLabel.BackgroundTransparency = 1
infoLabel.TextColor3 = Color3.new(1, 1, 1)
infoLabel.TextSize = 14
infoLabel.Font = Enum.Font.GothamMedium
infoLabel.Text = "AIR WALK: [ON]\nKeybind: L-CTRL"
infoLabel.Parent = menuFrame
local function updateUI()
	local status = platformActive and "ON" or "OFF"
	local color = platformActive and Color3.fromRGB(0, 255, 100) or Color3.fromRGB(255, 50, 50)
	infoLabel.Text = string.format("AIR WALK: [%s]\nKeybind: %s", status, KEYBIND.Name)
	infoLabel.TextColor3 = color
end

updateUI()

--DETECTION
humanoid.StateChanged:Connect(function(_, newState)
	if newState == Enum.HumanoidStateType.Freefall then
		isFalling = true
	elseif newState == Enum.HumanoidStateType.Jumping or newState == Enum.HumanoidStateType.Running then
		isFalling = false
	end
end)

--LOGIC
UserInputService.InputBegan:Connect(function(input, processed)
	if processed then return end
	if input.KeyCode == KEYBIND then
		platformActive = not platformActive
		updateUI()
	end
end)

--PHYSICS LOOP
RunService.Heartbeat:Connect(function()
	if not isFalling then
		platformPos = rootPart.Position + OFFSET
	end

	if platformActive then
		local platform = Instance.new("Part")
		platform.Size = PLATFORM_SIZE
		platform.CFrame = CFrame.new(platformPos)
		platform.Transparency = 1
		platform.Anchored = true
		platform.CanCollide = true
		platform.Parent = workspace
		
		task.wait() 
		platform:Destroy()
	end
end)

Features & Information

Allows player fly via making a part that pushes them up and lets them walk on it.
#fly#op#flying#levitation#float

Community Comments (1)

Bobluio554Bobluio554Feb 20, 2026

I see...

More Scripts for Universal Scripts