LoadAnimation (Method): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Megamatrixdude
New page: <onlyinclude>{{Method |name = LoadAnimation |description = This can be used to load an animation into the humanoid as a variable. |returns = [[Instanc...
m Text replacement - "<SyntaxHighlight code="lua">" to "<syntaxhighlight lang="lua">"
Tags: mobile web edit mobile edit
 
(13 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<onlyinclude>{{Method
<onlyinclude>{{Method
|name                 = LoadAnimation
|name       = LoadAnimation
|description         = This can be used to load an animation into the humanoid as a variable.
|arguments  = [[Animation]] <var>animation</var>
|returns             = [[Instance]] value
|description = This can be used to load an animation into the Humanoid as a variable.
|object               = Humanoid
|returns     = [[Instance]]
|object     = Humanoid
}}</onlyinclude>
}}</onlyinclude>


Line 9: Line 10:


{{Example|
{{Example|
Used to make a humanoid act out an animation.
Used to make a Humanoid act out an animation.
<pre>example=Humanoid:LoadAnimation(script.Parent.AnAnimation)
<syntaxhighlight lang="lua">example=Humanoid:LoadAnimation(script.Parent.AnAnimation)
example:Play()
example:Play()
</pre>}}
</syntaxhighlight>}}


[[Category:Methods]]
[[Category:Methods]]

Latest revision as of 04:44, 27 April 2023

LoadAnimation( Animation animation )
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()