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.

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

4 Likes

tween

1 Like

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)

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.

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

1 Like

then use cframe after clicking the link click rotating a door

1 Like

one option is to use the HingeConstraint

https://developer.roblox.com/en-us/api-reference/class/HingeConstraint

and set the ActuatorType to Servo

https://developer.roblox.com/en-us/api-reference/property/HingeConstraint/ActuatorType

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

4 Likes