LoadAnimation (Method): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
m Text replacement - "<code lua>" to "<SyntaxHighlight code="lua">" |
m Text replacement - "</SyntaxHighlight>" to "</syntaxhighlight>" |
||
Line 13: | Line 13: | ||
<SyntaxHighlight code="lua">example=Humanoid:LoadAnimation(script.Parent.AnAnimation) | <SyntaxHighlight code="lua">example=Humanoid:LoadAnimation(script.Parent.AnAnimation) | ||
example:Play() | example:Play() | ||
</ | </syntaxhighlight>}} | ||
[[Category:Methods]] | [[Category:Methods]] |
Revision as of 04:38, 27 April 2023
![]() | |
Returns | Instance |
Description: | This can be used to load an animation into the Humanoid as a variable. |
Member of: | Humanoid |
Example
Used to make a Humanoid act out an animation.
example=Humanoid:LoadAnimation(script.Parent.AnAnimation)
example:Play()