SetPrimaryPartCFrame is not a valid member of meshpart

wait it works its just not working as intended the door is supposed to follow the primary part because i have attached them together but it will only tween the primary part which is invisible and the door part won’t follow after the primary

i can send a video

here

https://gyazo.com/37e3e2f93f856f7df6d5dcd5fffbb192

You have to weld it together if you want it to move together.

and i have

i keep accidently pressing solution button.

https://gyazo.com/e931e880fba173dbd27e9bb1c4b31e69

Unanchor everything you aren’t tweening.

it works now but this happens:

https://gyazo.com/9048a273f6866d9a27945c9c3b1d9e68

Yeah, that’s just the way you’re trying to tween it, using “angles” wouldn’t work right but I’m not good in math so I don’t know how to solve your problem. But it just with that part.

He is tweening a “hinge” on the door, not the actual door if you get what I mean.

Then that would be a roblox physics problem, you wouldn’t even need a hinge for this kind of use.

No he is tweening the hinge so he doesn’t have to do complicated math to actually move the door. Check his video.

I did see and I’m saying the hinge is useless and just get rid of it as it’s really useless if you’re trying to tween the door to open and close. Cause with a hinge you don’t need any scripts as it’ll open the door with the weight of your character. I’m just helping him on how to do it without unnecessary stuff.

I’m not saying hinge as in hingeconstraint, I’m talking about something that rotates so that he doesn’t have to do complicated math to open it. He is tweening he hinge, not the door. Please read the code.

He also doesn’t want to open the door using the weight of the character. He wants the door to tween.

I know that, you just got me confused with “hinge” you didn’t inform me well. I also know he doesn’t want none of the weight thing, I said it as how it’ll act with an hingeconstraint. I’m not that stupid, okay?

If you watched the video you would have known what I meant. If I meant hingeconstraint I would have said hingeconstraint and wouldn’t have put “hinge” in quotes.

Have you heard about shortcuts? It’s like saying just “Weld” and they actually meant “WeldConstraint”. So don’t think that I know what you’re talking about, anyways it’s not something to argue about so just forget about it.

Ok, but still, he should just use CFrame to tween the hingepart and weld the door to it to pivot the door.

guys i made it connect and work but its not lined up at all here is a video

also the door knob wont connect prob because i havent welded it

i used a weldconstraint and it worked better

https://gyazo.com/254568fd084462817ee77153f02811d6

I recomment using weldconstraints to weld everything together. Make sure that the part called “Primary” is the only thing that is anchored.

To make things easier, It’s best to have 3 Parts. So 1 is for "Close and another for “Open”. So you’d have 1 Main door and 2 Close/Open Parts Position and ready. Once you got them ready, you’d Cframe the Main Door to “Close” and then when you Open it, Tween the main door to “Open” Door. Then you’d do the same thing for “Close”. It’s very inefficient but it’s the easiest way to do it.

He already has the moving part working, he just has to fix his welds and it will work for him.