How Do I Access The Player's Jump Height Through A Script?

Hello, developers! I am currently in the works of making a game and would like to ask how to access a player’s jump height through a script.

Would I do

local jumpPower = game.StarterPlayer.CharacterJumpPower

Or something else?

I looked everywhere for resources, but couldn’t find any.

Help appreciated!

5 Likes

You can just see the jump height (and change it) in the properties of the character’s humanoid.

3 Likes

To access jump power you can use both a local and server script.

For a server script:

game.Players.PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function(character)
		local humanoid = character.Humanoid
		humanoid.JumpPower = 0 --power u want
	end)
end)

In a local script:

local player = game.Players.LocalPlayer

local character = player.Character

local humanoid = character.Humanoid

humanoid.JumpPower = 0 --desired jump power
10 Likes