Skip to content

Commit 1abd492

Browse files
authored
Update using.md (#1146)
## Changes <!-- Please summarize your changes. --> <!-- Please link to any applicable information (forum posts, bug reports, etc.). --> ## Checks By submitting your pull request for review, you agree to the following: - [ ] This contribution was created in whole or in part by me, and I have the right to submit it under the terms of this repository's open source licenses. - [ ] I understand and agree that this contribution and a record of it are public, maintained indefinitely, and may be redistributed under the terms of this repository's open source licenses. - [ ] To the best of my knowledge, all proposed changes are accurate.
1 parent 16a37ed commit 1abd492

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)