Universal Script 📌
952 Views
435 Executions

Alternative Jump Button

Universal Script 📌
SpectravaxISBACK
SpectravaxISBACKPublished 25
11 months 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

This is for games that doesn't allow you to jump.

View Raw
local Players = game:GetService("Players")
local UserInputService = game:GetService("UserInputService")
local RunService = game:GetService("RunService")

local player = Players.LocalPlayer
local jumping = false

RunService.Heartbeat:Connect(function()
	if not jumping then return end
	local character = player.Character
	if not character then return end
	local humanoid = character:FindFirstChildOfClass("Humanoid")
	if humanoid and humanoid.FloorMaterial ~= Enum.Material.Air then
		humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
	end
end)

if not UserInputService.TouchEnabled then
	UserInputService.InputBegan:Connect(function(input, gp)
		if gp then return end
		if input.KeyCode == Enum.KeyCode.Space then
			jumping = true
		end
	end)

	UserInputService.InputEnded:Connect(function(input)
		if input.KeyCode == Enum.KeyCode.Space then
			jumping = false
		end
	end)
	return
end

local gui = Instance.new("ScreenGui")
gui.Name = "ForceJumpGui"
gui.ResetOnSpawn = false
gui.Parent = game:GetService("CoreGui")

local button = Instance.new("TextButton")
button.Parent = gui


Comments

2
Log in to join the conversation. Login
MeCody's profile picture
MeCody8 months ago

Pls give script without moving the button it gets in the way

1
gabrielmcglothlin18's profile picture
gabrielmcglothlin1811 months ago

Ai

1

Tags

More universal scripts

See all
Script hub
178.7k
1.7M
Bumped 2 hours ago
Key System
Universal Script 📌
9.1k
31.3k
Bumped 3 hours ago
Script hub
49.7k
12.2k
Bumped 4 hours ago
Key System
Paid
Script hub
5.5M
1.1M
Bumped 8 hours ago
Key System
Script hub
20.5k
3.9k
Bumped 9 hours ago
Key System
Paid
Universal Script 📌
706
50
Approved 15 hours ago
Universal Script 📌
612
512
Approved 15 hours ago
Universal Script 📌
574
126
Approved 15 hours ago