Simple Float Script
Key RequiredUniversal

Simple Float Script

Universal ScriptHilosHAXHilosHAX 7.3K views 337 executesUpdated Apr 22, 2025
2.5/ 5(4 votes)
2250% Positive
Lua Script•54 lines (1448 chars)
local UserInputService = game:GetService("UserInputService")
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")

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

local floating = false
local floatBodyPosition = nil
local speed = 300
local normalSpeed = 16

local keybind = Enum.KeyCode.Q

local function enableFloat()
	floating = true
	humanoid.WalkSpeed = speed

	floatBodyPosition = Instance.new("BodyPosition")
	floatBodyPosition.Name = "FloatForce"
	floatBodyPosition.MaxForce = Vector3.new(0, math.huge, 0)
	floatBodyPosition.Position = rootPart.Position + Vector3.new(0, 5, 0)
	floatBodyPosition.P = 100000
	floatBodyPosition.D = 1000
	floatBodyPosition.Parent = rootPart

	RunService.RenderStepped:Connect(function()
		if floating and floatBodyPosition then
			floatBodyPosition.Position = rootPart.Position + Vector3.new(0, 5, 0)
		end
	end)
end

local function disableFloat()
	floating = false
	humanoid.WalkSpeed = normalSpeed
	if floatBodyPosition then
		floatBodyPosition:Destroy()
		floatBodyPosition = nil
	end
end

UserInputService.InputBegan:Connect(function(input, gameProcessed)
	if gameProcessed then return end
	if input.KeyCode == keybind then
		if floating then
			disableFloat()
		else
			enableFloat()
		end
	end
end)

Features & Information

(KEYBIND IS Q) its a float script makes you launch in the air and your walkspeed changes to 300

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts