I've made 2 animations. one to lay down, and one to crawl. how do i put them together? like i want the animation to lay down then crawl, but how do i make the crawl limited to when im only moving?
COMMUNITY QUESTION
How to stay in an animation and queue another after?
1 answer
When creating your Animation in the Animation Creator, you should have set the priorities of the Animations.
The laying down animation should be Core
The crawling animation should be Movement and don't forget to set this to Loop
After that, you should be able to play these two animations at the same time. Example:
--LocalScript
local player=game.Players.LocalPlayer --Change to whoever
local crawl = Instance.new("Animation")
crawl.AnimationId = "http://www.roblox.com/Asset?ID=111111" --Change 111111 to the ID of the crawling animation.
local laydown = Instance.new("Animation")
laydown.AnimationId = "http://www.roblox.com/Asset?ID=111111" --Change 111111 to the ID of the laying down animation.
local animTrack = player.Character.Humanoid:LoadAnimation(laydown)
animTrack:Play()
local animTrack2 = player.Character.Humanoid:LoadAnimation(crawling)
animTrack2:Play()
This discussion is preserved as it was. New answers, comments, and votes are closed.

5 comments
What script should i do to make the other animation play right after?
Just make them both play at the same time.
I editted the answer if you needed help with that.
Sorry for being a bit noobish, but how do i make that work with this script?`player = game.Players.LocalPlayer mouse= player:GetMouse() animation = script:WaitForChild("Animation") enabled = true function LayDown() if enabled then enabled = false local animationtrack = player.Character.Humanoid:loadAnimation(animation) animationtrack:Play() wait(3) enabled = true end end
In your LayDown() function, just copy and paste the script that I made in between where it says "enabled=false" and "wait(3)"