Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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

2 answers

✓ Accepted answer

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)

1 comment

0

Thanks for helping! You solved my question ;D

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.

1 comment

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

This discussion is preserved as it was. New answers, comments, and votes are closed.