Can someone explain me how to play non-local Animations? The wiki said there's a method but it isn't pretty clear about it. Please explain to me.
I made the comment without realizing I had actually messed with animations a while ago...anyway, LoadAnimation simply preps the animation for use. The animation ID of the object classnamed "Animation" must correspond to an existing created ID (just like sounds, shirts, and all other things along the lines of online content). Once this is complete, simply create code connecting the animation to the humanoids of your choice:
local person = game.Workspace:WaitForChild("Dummy1"):WaitForChild("Humanoid") local animatorRun = person:LoadAnimation(game.Workspace:WaitForChild("Runner"))
and here is the corresponding workspace for the said environment (ignore the charactermeshes, I was using a body mesh for my penguin):
Now then, every time you want your animation to run, use this code:
animatorRun:Play()
:Play() can be spammed as much as you would like to run the animation; it as unlimited use as long as the model continues to exist. Keep in mind that Play has three parameters that must be used all together if used at all (you can keep it blank the way I have it and it will work fine). The first one is fadeTime, which obviously determines how much time you give the animation to fade. The second one is called "weight," and I'm not really sure what that one does. If someone has any information on that, feel free to contribute. Lastly, there is speed, which is a ratio number that you can use to choose how fast or slow your animation goes, similar to the Pitch property in sounds. Hope this helped, if it did make sure to check this as the answer; it gives both of us rep!