Title says it all, I’m trying to add an idle animation to a stationary NPC, but for some reason nothing works.
ServerScript:
local animationId = "rbxassetid://10777554675"
local Humanoid = script.Parent.Humanoid
local A = Instance.new("Animator")
A.Parent = Humanoid
local Animator = Humanoid.Animator
local animation = Instance.new("Animation", Humanoid)
animation.AnimationId = animationId
local Animation = Animator:LoadAnimation(animation)
Animation.Looped = true
while true do
warn(Animation.Length)
warn("Starting")
Animation:Play()
task.wait(3)
warn("Played")
end
If you’re still having this problem is most likely lies in the animation itself as I copy and pasted that script and it works fine for me, only thing I can think of is not owning the animation or having permission to use it.