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

How To Make A Landing Animation? [When hitting ground]

Asked by 5 years ago
Edited 5 years ago

Not a gear landing animation, I mean like when you hit ground you make a landing animation, can someone please help me?

2 answers

Log in to vote
0
Answered by 5 years ago

You must use humanoid state type to get the results you want and should look like that: For e.g the local script is inside the player's character

script.Parent:WaitForChild("Humanoid").FreeFalling:Connect(function() --- get function that fires during freefalling
    if script.Parent.Humanoid:GetState() == Enum.HumanoidStateType.Landed then --- check whether the player landed
        print("landed") --- print landed
    end
end)
0
Thanks for helping! You solved my question ;D fenix2020 7 — 5y
Ad
Log in to vote
0
Answered by 5 years ago
Edited 5 years ago

When testing your game in studio you'll notice that inside the Character (I think) has a LocalScript called animations or Animations (don't remember). What you want to do is copy paste that object and then place it in StarterCharacterScripts. Inside the script you'll notice a bunch of animation id's. Those are the Roblox default animation. All you want to do is make your own animation and change the falling animation id with yours.

PS: If you want a custom one I suggest looking up the properties of Humanoid and some events.

0
I already have a custom animation script inserted, it looks like that: game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character) player.Character.Animate.climb.ClimbAnim.AnimationId = "rbxassetid://180436334" --climb-- player.Character.Animate.fall.FallAnim.AnimationId = "rbxassetid://3107901058" --fall-- player.Character.Animate.idle.Animation1.Animatio fenix2020 7 — 5y

Answer this question