Universal Script πŸ“Œ
4.2k Views
374 Executions

infinite jump

Universal Script πŸ“Œ
mod3
mod3Published 10
1 year 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

title self explanatory, you can also hold spacebar and it'll jump automatically by itself

View Raw
-- Infinite Jump (Hold Space) for Solara
-- This works by listening to UserInput and forcing Humanoid:ChangeState to Jump

local UserInputService = game:GetService("UserInputService")
local Player = game.Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local Humanoid = Character:WaitForChild("Humanoid")

local holdingSpace = false

-- Detect when Space is pressed
UserInputService.InputBegan:Connect(function(input, isProcessed)
	if isProcessed then return end
	if input.KeyCode == Enum.KeyCode.Space then
		holdingSpace = true
		while holdingSpace do
			Humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
			task.wait(0.1) -- adjust speed of infinite jump
		end
	end
end)

-- Detect when Space is released
UserInputService.InputEnded:Connect(function(input)
	if input.KeyCode == Enum.KeyCode.Space then
		holdingSpace = false
	end
end)

-- Refresh Humanoid when character respawns
Player.CharacterAdded:Connect(function(newChar)
	Character = newChar
	Humanoid = Character:WaitForChild("Humanoid")
end)



Comments

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

More universal scripts

See all
Script hub
33.1k
298.2k
Bumped 2 hours ago
Script hub
23.7k
5.2k
Bumped 2 hours ago
Key System
Paid
High QualityΒ Offering
Universal Script πŸ“Œ
227
600
Bumped 3 hours ago
Universal Script πŸ“Œ
1.6k
30.3k
Bumped 3 hours ago
Script hub
4.1M
558.8k
Bumped 3 hours ago
Key System

Script hub

Hall of Fame #3

Verified script badgeOverflow 35 Supported Games

Script hub
5.5k
29.1k
Bumped 4 hours ago
Key System