Universal Script 📌
7.4k Views
582 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
11
0
Approved 43 minutes ago
Key System

Script hub

mobile support

Universal Script 📌
28
2
Approved 2 hours ago
Universal Script 📌
32
5
Approved 2 hours ago
Script hub
101
119
7 hours ago
Key System
Script hub
5.6M
1.1M
Bumped 5 hours ago
Key System