Universal Script 📌
7.4k Views
461 Executions

Simple Float Script

Universal Script 📌
HilosHAX
HilosHAX10 followers
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

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

View Raw
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()


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

More universal scripts

See all
Script hub
6.9k
53.8k
Bumped 38 minutes ago
Universal Script 📌
44
5
Approved 39 minutes ago
Script hub
13.1k
62.1k
Bumped 1 hour ago
Script hub
2.5k
7.4k
Bumped 2 hours ago
Key System
Universal Script 📌
1.3k
4.9k
Bumped 2 hours ago