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

Why are Humanoids making my game slower?

Asked by 10 years ago

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 :<)

2 answers

Log in to vote
2
Answered by
Nacaal 10
10 years ago

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.

0
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? NutsNWaffles 135 — 10y
Ad
Log in to vote
1
Answered by 10 years ago

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...

0
Hmm, i'll try that out. Though in League of Roblox the Gui above the minion is the same as a Humanoid...? NutsNWaffles 135 — 10y
0
Most likely a Billboard or Surface GUI..... It's good to use them when you can. colefrickz 0 — 10y
0
Have you tried something other than rocket propulsion OniiCh_n 410 — 10y

Answer this question