TweenService breaks collision

Ok so I made a simple door model, and close / open it using tweenService.

The only problem is after I close / open the door, the player can walk trough it, even if cancollide is set to true.

If i turn away from the door and walk a bit, and then walk back to the door the collisions are fixed.
Also if I set canCollide to false and then to true again fixes this bug too sometimes.

Not sure if this is some NetworkOwnerShip bug since all door parts are welded to the frame / welded to a part which is welded to the frame, which is anchored.

The only anchored part is doorFrame.
doorMain is welded to doorHinge, doorHandle is welded to doorMain.
I tween the C1 of the doorHinge.

Here is a video showing this bug:

External Media

Not sure what how to fix this now. My last option would be to lerp the C1 instead of using tweenService

1 Like

*edit I tried to Lerp instead of using TweenService, still the same bug idk what to do at this point

*edit 2 also tried to tween the doorHinge Part itself instead of its motor in doorFrame.
Still the same bug

1 Like

Are you change the collision on the client for effects reasons? It needs to be on the server.

1 Like

I made a custom module that solves this + a few other issues because I ran into this awhile ago. If you wanna play around with it you can find it here.

2 Likes

Nope I didnt change anything with the collisions.
The tween is on server

2 Likes

Thanks, I will try it out. (charlimit)

1 Like