What is the best way to animate a door?

Hello there. I will make this as short as possible. I want to animate a door and I want the animation to be smooth. I have animated many doors in the past using TweenService, and although the animation is smooth on the server, it can turn out choppy on the client. That being said, what is the best way to animate a door so it looks smooth on the client? Would it be best to tween on the server and use BodyPosition or other constrains to align it? Would it be better to just animate it on the client? What are other ways I could approach this which would minimize workload but allow for smooth animations? Thank you for your time and help.

1 Like

The best solution I can think of is to animate it on the client

5 Likes

tween

2 Likes

Thank you for the reply. I’ll keep this in mind. (I’ll be waiting for a few more replies before deciding on which one I will use)

1 Like

Like I said, the problem with Tweening in the server is the fact that it does not fully replicate the animation to the client. That being said, it looks choppy for the client depending on their connection and ping. I am not sure if ConstrainWelds make the difference here, but if they don’t, then it will look choppy.

1 Like

The simplest would probably be tweeting it on the server, but you should FireAllClients and tween it on the client for maximum smoothness

2 Likes

then use cframe after clicking the link click rotating a door

2 Likes

one option is to use the HingeConstraint

and set the ActuatorType to Servo

because this is physics based the network owner should be set to who ever is standing closest to the door and so it should be smooth for the player who is standing closest


Using the animation controller is also a very good option I show how in this video

5 Likes