Moving Parts Are Breaking My Game!

Hi, I created a laser obby which uses tweens to move the lasers between specified positions. Similar to Jailbreak. However when I played the game on roblox, it started lagging like crazy. Does anyone have any ideas how I can tween many parts without causing any severe lag. Btw the script is a server script. Any Help is greatly appreciated!

Bump this is kinda urgent for my game

Tweens are pretty performant, i’m pretty sure you can have 400+ running with little or no issues. The issue probably lies elsewhere, unless you have a crazy amount of tweened parts, that all need to tween at the same time.

Such parts in those tweens have been grouped together in a model? If anything you can group parts together and tween the primary part of the model to move the pieces together as a whole.

Other than that its sounds more like you have a memory link in a script somwhere else in your game. I you got parts from the toolbox, I suggest you check it out.

What kind of lag was it? Did it affect your FPS, or did the object appear to move back and forth?

Try putting the tweens in a localscript if possible

make the script a local script it should lower the lag i think but it wont stop it

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