Cant jump when resetted

i want to be able to jump after i die + every time i die the jumppower dont save
how do i do it?
script:

local plr = game.Players.LocalPlayer
local char = plr.Character or plr.CharacterAdded:Wait()
local hum = char:WaitForChild("Humanoid")
local debounce = false
local plrpoints = plr.leaderstats.JumpPowerr
hum:GetPropertyChangedSignal("Jump"):Connect(function()

		
			if debounce then return end
				
		debounce = true
		hum.JumpPower = hum.JumpPower + 10
		plrpoints.Value = plrpoints.Value + 10
	
		print("AAAnoobjaja")
		wait(2)
			debounce = false
		
		
			
				
	
		
end)

local script in starterpack

1 Like

When you die, your Humanoid enters a Death State where you
cannot change any of the Values. If you wanna make your Character
Jump even after he dies you’ll need to make a separate script where maybe you could use UserInputService or make the Humanoid not die.

For example: Make him enter a ragdoll state or something like that, code your own logic for it.

Hope that helped.

2 Likes

Just store the player’s JumpPower value in an IntValue instance parented to their player instance.

1 Like

You can use bodyvelocity to simulate jumping physical

Example:

Every time the input space is pressed, you check if humanoid.FloorMaterial ~= Enum.Material.Air, and then you create a bodyvelocity with Velocity = Vector3.new(0,1,0)

1 Like