Simplify TweenService replication to client

When tweens run on the server, they are never smooth because the server has to replicate them to each individual client in the game. A game I’m working on consists of tweens for many different things such as elevators, tweening the player’s position, moving objects to different locations, doors, etc. All of these tweens are run from different server scripts.

The issue is that unless these tweens are run on the client, they aren’t smooth. This means I have to create a remote event for every single object I want tweened, and a corresponding client-side script. Then I have to pass all the tweenservice parameters into this client script and run it (have to reconstruct tweeninfo on the client because you can’t pass it directly through a remote event).

How can I make this process easier? Is there a way to setup a ModuleScript to handle this for all scripts in the game? I pretty much want every single tween in the game to run on the client.

Any help is much appreciated, thanks!

1 Like

maybe you can just pass the object instance to be tweened and the tweeninfo and goal inside one remote event and just have one script that tweens it

1 Like

Just as the comment above suggests, perhaps just pass a parameter for a tween through a remote event and then do it on the client. It’ll make things more smoother, and it’ll let the server breathe a little more.

1 Like

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