Trying to detect if Humanoid.Jump property is changing

Glad to finally be a member here and able to post. My first post is rather simple. Trying to detect when jump property on the humanoid is changed. I got this code from the web and not really sure why it doesn’t work. Does the Changed event work for properties like this?

local humanoid = script.Parent.Humanoid

humanoid.Jump.Changed:Connect(function()
print(“Jumped”)
end)

[ attempt to index field ‘Jump’ (a boolean value)]

Thanks for your help!

1 Like

Wouldn’t something like this work?

local humanoid = script.Parent.Humanoid

humanoid.Jumping:Connect(function()

end)

You meant to do this:

humanoid.Changed:Connect(function(changedProperty)
    if changedProperty == "Jump" then
        print("Jumping")
    end
end)

Alternatively, you can use GetPropertyChangedSignal, or the Humanoid.Jumping event

Thanks guys you were both correct