Jump Boost

Jump Boost

Where to put this script

Put this script inside the part that will activate the jump boost when touched

Script

local boostPart = script.Parent
-- Set a variable for boosted jump power
local BOOSTED_JUMP_POWER = 200
local function onPartTouch(otherPart)
    local partParent = otherPart.Parent
    local humanoid = partParent:FindFirstChildWhichIsA("Humanoid")
    if humanoid then
        boostPart.CanCollide = false
        local currentJumpPower = humanoid.JumpPower
        if currentJumpPower < BOOSTED_JUMP_POWER then
            humanoid.JumpPower = BOOSTED_JUMP_POWER
            wait(10)
            humanoid.JumpPower = currentJumpPower
         end
    end
end
boostPart.Touched:Connect(onPartTouch)

Customize

Adjust how much boost

local BOOSTED_JUMP_POWER = 200