#playing animations in sequence
13 messages · Page 1 of 1 (latest)
Wait
waiting
that makes it play animation1 and then animation2 and so on
bruh...
anim1:play()
anim1.Stopped:Wait()
anim2:play()
I am new at this
** You are now Level 1! **
I still don't understand this from the script of the animation in sequence D:
anim1.Stopped:Wait()
waits until anim1 ended,
after that you play the next one
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?
try it
It does not work