Skinstashery
Roblox
Home / Roblox / Studio script library / Jump boost pad
RB-004

Roblox jump boost pad script

A pad that lets a player jump much higher for a few seconds.

Script type
Script
Where it goes
Inside the Part
Category
Hazards and pads

For your own game in Roblox Studio. Not for use in other people's games.

The code

-- Jump boost pad: higher jumps for a short time.

local BOOST_JUMP_POWER = 120   -- the normal JumpPower is 50
local DURATION = 8             -- seconds the boost lasts

local part = script.Parent
local boosted = {}

part.Touched:Connect(function(hit)
	local humanoid = hit.Parent and hit.Parent:FindFirstChildOfClass("Humanoid")
	if not humanoid or humanoid.Health <= 0 then
		return
	end
	if boosted[humanoid] then
		return
	end

	boosted[humanoid] = true
	local originalPower = humanoid.JumpPower
	humanoid.UseJumpPower = true        -- make sure JumpPower is used, not JumpHeight
	humanoid.JumpPower = BOOST_JUMP_POWER

	task.wait(DURATION)

	if humanoid.Parent then
		humanoid.JumpPower = originalPower
	end
	boosted[humanoid] = nil
end)

How to set it up

  1. Insert a Part, set Anchored to true, and colour it so it stands out.
  2. Add a Script inside the Part and paste the code.
  3. Press Play and step on the pad.
  4. Jump. You should go much higher than before.

Change it

More in Hazards and pads

All Roblox scripts

More Roblox tools