Hello! I am trying to create an idle animation for an NPC (As the title suggests). No errors occur, but it isn't working.
local animIdle = Instance.new("Animation")
local hum = script.Parent:WaitForChild("Humanoid")
animIdle.Parent = hum
animIdle.AnimationId = "rbxassetid://507766388"
local anim = hum:LoadAnimation(animIdle)
anim:Play()
--Server Script
This is the view from the explorer tab. The highlighted script is the code right above this paragraph.
All help is appreciated.
Thanks, LennyPlayzYT
