TweenService V2

Hi
I found putting a simple check if the instance is replicated works:

if not instance then
   return
end

This should be placed under the ‘OnClientEvent’. This way the client doesn’t tween the object. But once the server sets the property and the client streams the part back in again, the property will be streamed correctly to that client.

Warning: Smooth tweens for a client will only be applied if the instance is streamed in on that client before creating the tween on the server!

So if the client streams the object in while it is being tweened, it will see the property being instantly set on tween finish. This is however a minor issue in most cases, and most likely not noticeable for short tweens.

I made a pull request for this check ~8 months ago which has fortunately just been merged. If you get the module straight from GitHub, adding this patch manually is no longer necessary.

2 Likes