Hello there! I am currently creating a MOBA. And as many of you may know, MOBA's consist of many minions. Now you see, my problem is this: 6 minions spawn from each lane, on each side. Meaning its 6 * 2 (Both sides) * 3 (Number of lanes) And apparently because of the high number of Humanoids, the whole server starts to lag... And im not talking about FPS lag, im talking about things being slow and unresponsive. For example: My turrets missiles are moving WAY slower than they should (Using RocketPropulsion), and they move just fine when there are a little amount of mobs. Also the detection of enemies within the turrets range is slow and doesn't react like it should, however it works just fine when there are a little amount of mobs.
So basically what im asking is this : How can I reduce the server-side lags, without getting rid of all the humanoids? (I need those minions :<)
If you plan on having that many minions moving around and spawning while rockets are flying around, of course you're going to see lots of lag. I'd recommend shortening the amount of minions to at least 3. Yes, it may seem like it would make the game less fun, but it would actually encourage more PvP instead of people just farming minions for the whole game.
NutsNWaffles: Idk man, I mean, if you know League of Roblox, he's doing the same thing, yet his game doesn't seem to have any lags?
The reason being is that he uses values instead of Humanoids, he uses a Value to determine health and such, so give it a try with the script below.
bot1 = game.Workspace.Bot1.Health if bot1.Value == 0 then print("You killed him!") end
Very simple, you can add animations etc and or play a sound and such on...