I've been trying to make a npc have a walk animation, I have tried multiple scripts, and none of them worked. This was my last script I haved tried:

-- localscript
local humanoid = script.Parent:WaitForChild("Humanoid")
local anim = Instance.new("Animation")
anim.AnimationId = "rbxassetid://2510242378"
local track = humanoid:LoadAnimation(anim)
track:Play()

Thanks in advance.Edit: the animation I did was r15, and it was a r6 model lol

2 comments

0

I suggest using serverscripts for NPC animations

0

I tried a server script and it didn't work.