Skip to content

Commit fb16deb

Browse files
authored
Update using.md
1 parent 16a37ed commit fb16deb

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

content/en-us/animation/using.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,15 @@ kickAnimation.AnimationId = "rbxassetid://2515090838"
3939
-- Load the animation onto the animator
4040
local kickAnimationTrack = animator:LoadAnimation(kickAnimation)
4141

42-
-- Play the animation track
43-
kickAnimationTrack:Play()
44-
4542
-- If a named event was defined for the animation, connect it to "GetMarkerReachedSignal()"
4643
kickAnimationTrack:GetMarkerReachedSignal("KickEnd"):Connect(function(paramString)
4744
print(paramString)
4845
end)
46+
47+
task.wait(4)
48+
49+
-- Play the animation track
50+
kickAnimationTrack:Play()
4951
```
5052

5153
### Non-humanoids
@@ -69,13 +71,15 @@ animator.Parent = animationController
6971
-- Load the animation onto the animator
7072
local kickAnimationTrack = animator:LoadAnimation(kickAnimation)
7173

72-
-- Play the animation track
73-
kickAnimationTrack:Play()
74-
7574
-- If a named event was defined for the animation, connect it to "GetMarkerReachedSignal()"
7675
kickAnimationTrack:GetMarkerReachedSignal("KickEnd"):Connect(function(paramString)
7776
print(paramString)
7877
end)
78+
79+
task.wait(4)
80+
81+
-- Play the animation track
82+
kickAnimationTrack:Play()
7983
```
8084

8185
## Replace default animations

0 commit comments

Comments
 (0)