local par = script.Parent
local idle1 = Instance.new("Animation")
while true do
idle1.AnimationId = "rbxassetid://4508495460"
wait(3)
local control = Instance.new("AnimationController", par)
local animationTrack = control:LoadAnimation(idle1)
animationTrack:Play()
end
I'm trying to get this to play an idle, it's priority is set to action rn, I do own the animation, and I'm trying to get it to play on an NPC. I took the script right from https://developer.roblox.com/en-us/articles/using-animations-in-games, so anyone have a single clue what's wrong here?

1 comment
Ah thanks, I think I might have been trying to play the animation from AnimationController and Humanoid, also, the while true do did prove to be useless. Thanks a lot man.