Skip to content

Commit d74aa9c

Browse files
Update Animator.yaml (#1078)
## Changes <!-- Please summarize your changes. --> put a note under LoadAnimation documenting possible hard error <!-- Please link to any applicable information (forum posts, bug reports, etc.). --> I ran into this cryptic error "Cannot load the AnimationClipProvider Service." when trying to load an animation. I did some searching and the root cause seems to be calling load animation on an animator that isnt yet parented to the workspace. I have no clue why this is a necessity at all, let alone pressing enough to warrant a hard error. This seems to be a long standing problem that occurs on occasion for humanoids and the regular player model as well, causing some users to have broken animations from the default animation script erroring. See this thread https://devforum.roblox.com/t/error-cannot-load-the-animationclipprovider-service/1639315/98 ## Checks By submitting your pull request for review, you agree to the following: - [x ] 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. - [ x] 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. - [ x] To the best of my knowledge, all proposed changes are accurate. --------- Co-authored-by: IgnisRBX <[email protected]>
1 parent 8b365de commit d74aa9c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

content/en-us/reference/engine/classes/Animator.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,10 @@ methods:
169169
`Class.BasePart:SetNetworkOwner()`, this function also loads the animation
170170
for the server as well.
171171
172+
Note that the `Class.Animator` must be in the `Class.Workspace` before
173+
making a call to `LoadAnimation()` or else it will be unable to retrieve
174+
the `Class.AnimationClipProvider` service and throw an error.
175+
172176
You should use this function directly instead of the similarly-named
173177
`Class.Humanoid:LoadAnimation()` and
174178
`Class.AnimationController:LoadAnimation()` functions. These are

0 commit comments

Comments
 (0)