I got a fall animation, and after around... 1.6 seconds of falling, I want the player to do a roll animation when he lands. How would I make that happen?
local FallAnimations = {344065810, 355981334, 356052401}
local FALL_ANIM_NEW = 'http://www.roblox.com/asset/?id='
game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(character)
local animateScript = character:WaitForChild("Animate")
local fall = animateScript:WaitForChild("fall")
local FallAnim = fall:WaitForChild("FallAnim")
repeat wait() until character:FindFirstChild('Humanoid') --Wait until humanoid exists.
character.Humanoid.FreeFalling:connect(function() --Establish freefalling event. Every time they go free falling, run the anonymous function.
FallAnim.AnimationId = FALL_ANIM_NEW .. FallAnimations[math.random(#FallAnimations)]
end)
end)
end)
(Credit to ROBLOXianExpirience for helping me with this script)
I added this script just in case it might be needed.
