Evening everyone, I’m currently having an issue with Welds.
In the Image above, there is a Glass Frame Welded to the Hinge above it, this allows it to turn open when interacted with. However, I want the whole Contraption to move Downwards after the Player gets in.
The issue with this however is, I have to weld everything, including the door and hinge to the PrimaryPart. This does technically allow the whole model to move downwards but the door no longer opens when interacted with, it’s just static.
The only thing that is Anchored is the Main Body of the elevator.
Any help is appreciated. The only solution I can think of is moving them seperately but this might cause issues depending on player preformance (?) and would look jittery and inconsistent. So im asking if there’s a better alternative
Nevermind again, I fixed the doors being unable ot open but I had to anchor the Hinges to do that. if I unanchor them they still don’t move the door even if the door is the only weld connected to them
If I Anchor the Hinge, the Doors are left behind when the elevator descends, but the door opens as intended
If I unanchor the Hinge, then the Door can’t open so people can’t walk inside the elevator at all.
Strange. I have a few questions, so that I can attempt to replicate this and find a solution.
First: when you say static, what exactly do you mean?
Second: how are you moving the door? Are you using a tween? Are you setting the position every few seconds?
I only just realised your title change, feel free to still answer my questions though.
Quickly just grabbing a part from the docs and it says:
If a welded part’s Position is updated, that part will move but none of the connected parts will move with it. The weld will recalculate the offset from the other parts based on the moved part’s new position.
Perhaps you could try that? Let me know if anything changes.
edit: Taking a closer look at the page, editing the CFrame of a part will cause all welds to move with it, so that it will maintain the offset. I don’t know any clear fixes for this, but hopefully this helped.
Yeah, I saw this when looking around other pages, using position only moves the target object in question which is why I used CFrames which were said to move connected parts, but its not working here, unsure why.
I think I have a solution again! it’s pretty simple in retrospect
Since the issue was focused on the Hinge being Anchored, and WeldConstratins don’t break like Welds Do, what I did was simply just toggle the Anchor off when the elevator is told to move down, moving the whole model, then I should be able to toggle the anchor back on which allows for the door to move again.
I only have the elevator moving down currently, so i’ll test if it works after coming back up, but this seems to work!
edit: it does indeed work, I noticed a slight jolt of the Hinge but this was probably because of how I asked it to return based on the position of the elevator and not its own old position.