Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I make the player bounce once they land after jumping?

Asked by 3 years ago

I want to recreate the little bounce a player would have once they landed after they jumped (not like after falling or something, specifically after you jumped). How can you recreate this?

I tried using .StateChanged on the Humanoid, then do whatever, but that would either not work at all, or do it multiple times.

I found what I need to do, I just need it to not be so glitchy.

Here's some code

hum.StateChanged:Connect(function(old, new)

            if new == Enum.HumanoidStateType.Landed then
                hum.JumpPower = 15
                hum.Jump = true
                wait(1)
                hum.JumpPower = 50
            end

        end)

Can anyone help?

Answer this question