#playing animations in sequence

13 messages · Page 1 of 1 (latest)

sturdy seal
#
local animationTrack = AnimationController:LoadAnimation(animation)

animationTrack.Looped = false
sturdy seal
#

waiting

heavy basin
sturdy seal
#

bruh...

anim1:play()
anim1.Stopped:Wait()
anim2:play()
gleaming gateBOT
#

studio** You are now Level 1! **studio

heavy basin
#

I still don't understand this from the script of the animation in sequence D:

sturdy seal
#

anim1.Stopped:Wait()
waits until anim1 ended,
after that you play the next one

heavy basin
#

local Humanoid = script.Parent:FindFirstChildOfClass("Humanoid")

local Animation1 = Instance.new("Animation")
Animation1.AnimationId = "rbxassetid://ANIMATION1_ID_HERE"

local Animation2 = Instance.new("Animation")
Animation2.AnimationId = "rbxassetid://ANIMATION2_ID_HERE"

local AnimationTrack1 = Humanoid:LoadAnimation(Animation1)
local AnimationTrack2 = Humanoid:LoadAnimation(Animation2)

AnimationTrack1:Play()
AnimationTrack1.Stopped:Wait()

AnimationTrack2:Play()

#

this is good?

sturdy seal
#

try it

heavy basin