Best way to optimize tween animations?

I plan on having a game with a bunch of drawers, cabinets and whatnot. The goal is to find something, so there will be a lot of drawers which means a lot of opening animations to play. I’m sure I should use remote events, so is it best to check players distances then send remote events? Or should I FireAllClients() then do the distance checking on the client? There’ll be a maximum of 14 players per server as well

I’m not the best at optimizing so let me know! :sweat_smile:

Yeah you should just do all the tweening on the client its the best way

Check if the player is in certain distance, then fire a remote event (do not fire for far away players to reduce the amount of events being fired) and on client when the event is received check last time for the distance then play the animation.

i don’t think using remotes is necessary, you could use proximity prompts or click detectors, and once they are triggered, set a bool value to true/false based on whether the cabinet/drawer is open or not. then you could listen for these changes on the client, and play the tweens accordingly

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.