LoadAnimation (Method): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>JulienDethurens No edit summary |
m Text replacement - "<SyntaxHighlight code="lua">" to "<syntaxhighlight lang="lua">" Tags: mobile web edit mobile edit |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<onlyinclude>{{Method | <onlyinclude>{{Method | ||
|name | |name = LoadAnimation | ||
| arguments | |arguments = [[Animation]] <var>animation</var> | ||
|description | |description = This can be used to load an animation into the Humanoid as a variable. | ||
|returns | |returns = [[Instance]] | ||
|object | |object = Humanoid | ||
}}</onlyinclude> | }}</onlyinclude> | ||
Line 11: | Line 11: | ||
{{Example| | {{Example| | ||
Used to make a Humanoid act out an animation. | Used to make a Humanoid act out an animation. | ||
< | <syntaxhighlight lang="lua">example=Humanoid:LoadAnimation(script.Parent.AnAnimation) | ||
example:Play() | example:Play() | ||
</ | </syntaxhighlight>}} | ||
[[Category:Methods]] | [[Category:Methods]] |
Latest revision as of 04:44, 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()