Viewmodel Torso Animation

I’m making a viewmodel, and I completed everything but a bug came up. For some reason, the viewmodel’s torso doesn’t animate, even though i’m setting its transform.

Here’s a snippet: viewmodelRoot["RootJoint"].Transform = rootJoint.Transform viewmodelTorso["Left Shoulder"].Transform = leftShoulder.Transform viewmodelTorso["Right Shoulder"].Transform = rightShoulder.Transform

2 Likes

Any errors within the console?

Your getting humanoidrootpart’s transform, not torso’s transform

No errors are in the console right now

I’m trying to set the transform of the rootjoint, which I THINK dictates how the torso animate like how the shoulders dictate how the arms animate. As of now, I’m not sure if there is any joints which dictate how the torso move other than rootjoint.

Are you setting the transform property under render stepped? Just so you know, .Transform updates at RunService.PreSimulation.

Yes I’m setting them in renderstepped, but do I need to replace the event with presimulation?

You can just make another RunService connection for PreSim and accordingly set the transform property.

Thanks, I’ll try that when I’m able to.

np. <333

The same results happen.. : ( the viewmodel’s shoulders work perfectly, its only the viewmodel’s rootjoint that’s not doing anything. Still need help on this, please help.

FIXED IT!! (If anyone reading this encounters the same issue, I forgot to set the viewmodel primary part to the humanoidrootpart…)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.