So I made a script where the animation of the NPC will begin playing.
but the problem is that animation is not working. Can someone please help me with this?
I tried putting the animation inside the script and changed some variables but the animation still isn’t working.
The animation script is in a much bigger script and is also a starterplayer script. The whole script is working fine other than the line with the animation itself.
Here is the script for the animation
local Ranger = workspace.Areas.Area2.RangerNPCs.RangerNPC1
Ranger.Humanoid:LoadAnimation(script.Anim):Play()