Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Help with Animating NPCs?

How would I apply ROBLOX's standard animations to an NPC? This is the current script:

local animation = Instance.new("Animation")
animation.AnimationId = "http://www.roblox.com/asset/?id=125750544"--Basic idle animation
animation.Parent = script.Parent

local animController = Instance.new("AnimationController")
animController.Parent = script.Parent
local animTrack = animController:LoadAnimation(animation)
animTrack:Play()

Done via a Script, not LocalScript. (I heard to do it like this since it isn't a real player/character?)

2 answers

This discussion is preserved as it was. New answers, comments, and votes are closed.