Good way to approach Drag to Open doors?

Hey! I’m trying to make doors that are similiar to i.e. Phasmophobia’s drag to open doors, where you hold and drag your mouse in order to move a door.

While I’ve tried a bunch of things, none of them give my expected result and quite frankly, I have no idea where to start, hence why I was wondering whether any of the people on here could help me with this.

I searched Google but it appears that I am the first person encountering this issue.

Do any of you know where I would start with making this system?

Thanks!

you can use mouse.Button1Down event and the mouse.Move event to do it maybe? after that you can check if the hit of the mouse is a door then move the door following the mouse

That’s C# lol.


Use mouse.Move and fire a remote event every time it’s fired, then when the remote is received open the door.

This is definitely not in Lua. It’s also not that helpful either.

Oh, I just deleted the post, since it probrobly wont help then.

I thought it could help, but as I looked at it I relized it probrobly isnt.

Great news; I’ve resolved the issue and it is functional! If anyone would like to provide feedback on my current solution feel free, I’ll leave the place file here so people who have the same issue can use it.
Door.rbxl (38.9 KB)

3 Likes

Thanks for this, very helpful for people just passing by, just one problem though. When trying to control the door from the other side it seems that it is inverted. Is there any fix?

its good but the movement is client side.