Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Scripts causing lag?

Asked by 8 years ago

I've been working hard on my RPG, but I am constantly getting issues with the game being laggy. After using the process of elimination, I've discovered that the source of he lag is the mobs. I was wondering what was causing this lag and how I can fix it.

Inside of each npc: Body Colors Damage Enemy Follow Respawn Roam -- A script that makes the npcs wander around the zones Statgive

I have removed them all one at a time to try to isolate the issue, but this didn't work. Anyone that knows more about this than me please help, because it's obstructing the progress on my game (http://www.roblox.com/games/26312856/Vortex-Lord)

If you need more info. about one of these, let me know and I'll post the entire script.

0
It's probably either follow or roam. Pyrondon 2089 — 8y

1 answer

Log in to vote
0
Answered by
Belvari 15
8 years ago

I recommend trying to either shorten your scripts, or even going through the game and adding some unions so you don't have the work space overwhelmed with parts. Scripts can cause lags if they are too long when they don't need to be or you may even have some unnecessary parts within the script. I feel as if it could be a problem with the game having to much parts. Try to union or even remove some parts, Hope that helps!

Ad

Answer this question