Need help with anchoring doors

Hello,

  1. What do you want to achieve? Moving doors while anchored

  2. What is the issue? Im trying to make moving doors using CFrame and i need them to be anchored (soo players cant push them) but i need them to be able to move using CFrame video here

  3. What solutions have you tried so far? I tryed welding blocks together but that didnt helped much

Game link: here

1 Like

Moving doors?Do you mean open then door by clicking or pressing f?

No, look at video please…

Im trying to make doors move even when they are anchored (soo players cant push them)

So you are changing value of CFrame as model (are the doors model)?

You can still change the CFrame with the part anchored. If you’re using it already you don’t need to change anything

1 Like

I cant it wont move when anchored

image It moves Open1 and Open2 and Union and Part moves with it

Ah, you can use :SetPrimaryPartCFrame() instead and put the parts for each door in a model. This will allow you to maintain the same behaviour

You can try to weld them to the primary part and then change the CFrame.

Ye but people are still able to push it

Yeah and anchor them now. I use TweenService on anchored parts also welded to primary part and animations works.

Soo if i use tween it should work?

CFrame manipulation would work too. Make sure your part is anchored by default.

PS: Did not read the replies, gonna do that now.

Yeah, but I had to weld other parts, I had an model with different parts and those had to move at the same time as primary part but because you have doors is just a little bit more complicated because you will need different tweens to use just because of two seperate doors which are moving.

That’s clearly because the Union is a child of the door. If a parent is moving, its children would move along with it too.

Ye i know that, but i need to make it anchored but still be able to move it using CFrame

Anchor the door, and all its children. Then try your script. If it still doesn’t work, would you mind showing us the script?

Can you give me tween (moving script) example?

EDIT: I need to move it (0,0,-2)
and then after -2 finishes: (0,0.5,0)

Better solution by @colbert2677

1 Like
GetPrimaryPartCFrame is not a valid member of part