Moving a model causes parent to move as well

Here’s a video of it happening:

Here’s the code:

I tried replicating the issue, but this works as intended, even with the exact same positions:
cannot replicate.rbxl (117.8 KB)

What can I do to fix it? The orange and yellow arrows should be inside the green and blue ball, just like in my file.

Is there anything I need to check to see if something is moving? I have so many scripts, I have no idea what could be possibly causing the green and blue ball to move additionally…

Why is the model parented UNDER the ball? I feel like the ball could be IN the model, but im sure you have reasoning for it

It’s more or less for organization’s sake.

Notice, when I click the ball, the “attachment arrows” appear. The yellow arrow points towards positive X, and the orange arrow points towards positive Y. This gives the player enough visual information to accurately determine the orientation of the ball.

So the arrows only appear when the ball is selected. When the ball is deselected, the arrows need to go. I destroy them. Now, it’s not actually imperative that the arrows are a child of the ball they correspond to, but it’s nice to have it that way because it reduces visual clutter in the explorer tree.

Since I get to the attachment arrows using a dictionary, and not :FindFirstChild("Attachment Arrows"), I can have the attachment arrow models parented directly to the workspace. It’ll get messy when I have like 30 of these balls selected, all with attachment arrow models…

The attachment arrow model’s children all turned out to be welded to the green ball.


I cannot unweld them due to reasons that will take too long to explain.

What did work however, is setting the workspaceObject’s cframe to the position, not the position to position:

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