I am trying to make a NPC R15 rig have the default roblox animations, so, for example, if I call Humanoid:Move()
on it, it should walk with the default walking animation (btw I'm using Humanoid
s).
My first try was to copy the Animate LocalScript
from a player's character, put it in ServerScript
(also called Animate), and then put it in the NPC (I also put the IntValue
s inside the script, if you are wondering). I even tried deleting and/or pcall()
wrapping the part that errored (which referenced game.Players.LocalPlayer
), but it still didn't work (because that wasn't the reason it didn't work, it did stop erroring though)
Any other ways to do this?
Note to self:
Always unanchor the HumanoidRootPart
.