Question, How Do You Increase JumpHeight In A Script?

So, I’m Wanting To Make A Script That Can Increase The Player’s JumpHeight, Is It Something like this?

player.character:WaitForChild("humanoid").JumpHeight

If not anything like that PLEASE Tell Me, So Please, Almost All Answers Help.

That works, except that player needs to be assigned to someone and character and humanoid should be capitalized. If you want everyone in the game to have increased JumpHeight, it’s as simple as this.

game.Players.PlayerAdded:Connect(function(player)
    player.CharacterAdded:Connect(function(character)
        character:WaitForChild("Humanoid").JumpHeight = 100
    end)
end)

If this script were any longer, I wouldn’t be writing it. But it’s short and simple and you might be able to learn from it.

1 Like
Player.Character:FindFirstChildOfClass("Humanoid").JumpPower = 50
1 Like

But How would I Put It In A Script like This?

function PlayerAdded(player)
	local function CharacterAdded(character)
		while task.wait() do
                --Code In Here
			end
		end
	end
	player.CharacterAdded:Connect(CharacterAdded)
end

players.PlayerAdded:Connect(PlayerAdded)

I think it works


function PlayerAdded(player)
	local function CharacterAdded(character)
		while task.wait() do
-- Change 50 with the value you want
character:FindFirstChildOfClass("Humanoid").JumpHeight = 50
			end
		end
	end
	player.CharacterAdded:Connect(CharacterAdded)
end

players.PlayerAdded:Connect(PlayerAdded)

I Said JumpHeight, But Thank you very much!!

Uhm sorry ^^’
Tell me if you need more help later !

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.