Motor6D.Transform edits from the command bar do not update when the game is not running

Lets take a usual R6 rig
image

When you run the command

workspace.Dummy.Torso["Left Shoulder"].Transform = workspace.Dummy.Torso["Left Shoulder"].Transform *CFrame.fromOrientation(0, 0,-math.pi/2)

It should rotate the Left Arm 90* upwards.
image

However, the arm remains at a rigid 0*
image
What makes this bug weirder is that (as seen above), the command works and gets updated during runtime. However when the game is not running, the Transform property does not get replicated to the 6D.

It also resets when you start running the game

Output log from testing:

> print(workspace.Dummy.Torso["Left Shoulder"].Transform)
0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1
> workspace.Dummy.Torso["Left Shoulder"].Transform = workspace.Dummy.Torso["Left Shoulder"].Transform *CFrame.fromOrientation(0, 0,-math.pi/2)
> print(workspace.Dummy.Torso["Left Shoulder"].Transform)
0, 0, 0, -4.37113883e-08, 1, 0, -1, -4.37113883e-08, -0, -0, 0, 0.99999994
1 Like

Changes to transform don’t update because the animator isn’t being stepped when the game isn’t running. You have to step the animator manually: https://developer.roblox.com/en-us/api-reference/function/Animator/StepAnimations

4 Likes

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