Humanoid functions stop working after reset

I’m trying to detect when a player jumps
After resetting, the Jumping function stops working
I don’t even know what’s going on.

The LocalScript is located in StarterPack so it should reset whenever I reset my character
It didn’t throw any error, Humanoid and Character were not nil

local Character = game.Players.LocalPlayer.Character or game.Players.LocalPlayer.CharacterAdded:Wait()
local Humanoid = Character:WaitForChild("Humanoid")

Humanoid.Jumping:Connect(function(b)
	print("JUMP")
end)

Move this script into game > StarterPlayer > StarterCharacterScripts.

The problem is that you don’t assign the Humanoid variable to the new humanoid when you respawn. This script wouldn’t reset when you spawn because it gets put into the “Backpack” folder in your player (unless it’s in an equipped tool in which case it moves to your character) which iirc doesn’t reset its contents when you spawn.

1 Like

Hmm, I see. That’s why scripts that I put inside tools reset whenever I reset my character