Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Does an NPC have to be unanchored to play an animation?

Asked by
Stravan 18
7 years ago

I'm trying to animate an NPC model that's using an R15 rig. I haven't had that much luck so far, but I was wondering if it matters if the model is anchored or not if you want to animate it.

Here's the script in case I need to make any changes if anchoring the model doesn't matter. It's a regular script inside of the model's humanoid, and an animation is inside the script.

id = "rbxassetid://549955265"
Example = game.Workspace.ExampleCharacter
Animation = script:WaitForChild("Animation")
Animation.AnimationId = id
local animationTrack = Example.Humanoid:LoadAnimation(Animation)
animationTrack:Play()
0
I am not sure but I doubt it matter if the limbs are anchored. An animation is just a simple way to lerp cframing, and cframing works if anchored. cabbler 1942 — 7y
0
Try animating an R6 rig, see if it works out. If it does and you applied to same methods, perhaps it's just with R15? I haven't tried animating R15 yet, so I don't know. Shawnyg 4330 — 7y
0
I tried using an R6 rig as you said, however it didn't seem to change anything. i think there's something wrong with my script, but i don't know what. Stravan 18 — 7y
0
If a limb is anchored it won't animate. If you don't want the NPC to move, just anchor it's HumanoidRootPart. AZDev 590 — 7y

Answer this question