Universal Script 📌
923 Views
369 Executions

Alternative Jump Button

Universal Script 📌
SpectravaxISBACK
SpectravaxISBACKPublished 25
10 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
MeCody7 months ago

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

1
gabrielmcglothlin18's profile picture
gabrielmcglothlin1810 months ago

Ai

1

Tags

More universal scripts

See all
Script hub
2.4k
2.2k
Bumped 39 minutes ago
Key System
Universal Script 📌
50
2
Approved 49 minutes ago
Script hub
2.8M
661.5k
Bumped 2 hours ago
Key System

Script hub

#4 today

Verified script badgeFlow Hub | 35 Games | Updated

Universal Script 📌
113
16
Approved 3 hours ago
Universal Script 📌
4.2k
185.8k
Bumped 10 hours ago