I'm now having troubles as to why this won't work in a public server. This script only works in studio and I don't really know why.
wait(.5)
id = "http://www.roblox.com/asset/?id=549955265"
Example = script.Parent.Parent
Animation = script:WaitForChild("Animation")
Animation.AnimationId = id
local animationTrack = Example.Humanoid:LoadAnimation(Animation)
animationTrack:Play()
Some of you guys might recognize this script from the last question I asked, and I did solve that problem.. however I never realized it didn't work on a public server up until now. I have FilteringEnabled on in case that makes a difference with this script. I'm using an R15 rig, but I know that's not the reason why it's not working because an R6 rig doesn't work either with this script. Every other question related to this topic all points to using FindFirstChild or WaitForChild and I'm using WaitForChild so I don't really know what to do.

4 comments
I thought I wasn't supposed to use a LocalScript from the wiki. I did try that though, nothing changed.
Did you try reading the blog post? Also animations only work in LocalScripts.
Are you sure? And yes I did read the blog post. Whenever I used a localscript as you said, the script wouldn't even work when I hit "Play" instead of start sever. EDIT: I realized I forgot to tell you I'm animating an NPC, if that's why you think I shouldn't be using a localscript.
I figured out why it didn't work! And yes, you were right. I needed to use a localscript. Thank you!