So I've glossed over the Roblox Wiki for animations a few times now(http://wiki.roblox.com/index.php?title=Animations) and was able to put the preexisting code into a server script. However, every time I try to play the script in-game, the animation doesn't work.
Here is the code:
local animation = Instance.new("Animation") animation.AnimationId = "http://www.roblox.com/Asset?ID=465228436"
--Using an ID that belongs to me
local animController = Instance.new("AnimationController") local animTrack = animController:LoadAnimation(animation) while wait (5) do animTrack:Play() wait(2) end
I've made sure that the script isn't disabled, or that the model is anchored. The model is one of Roblox's default character rigging models.
What am I missing to make the animation play?
