Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How Do I Make A Script That Make The Game Less Lag?

When I try out my own game "The War of Roblox" A game that you have to pick a certain character and fight in a city. But when I entered the server, I suddenly feel a little lag in my game. So I try to make this script to help make the game less lag. Am I doing this correctly? Please, help me.

mx = game.Debris
mx2 = game.Debris.MaxItems

if (mx.MaxItems > 100) then
	mx.MaxItems = mx2*.75
end 

3 comments

0

What is your game like? Combatting lag is tricky and it varies in application from game to game.

0

Last time i checked you didnt have a game on your account, so you're basically spamming the questions.

0

Can I get a script for rain like the one for snow earlier? Message me on ROBLOX at SouthCaroIina?

2 answers

✓ Accepted answer

Usually its just your building type or scripting way (because there's different ways to script a thing to make it lag less) Also most "anti-lag" scripts out there just set a part limit which will ruin your game. I suggest learning to better create your code to reduce lag.

I agree with eLunate. However, the number for the Debris will cause the lag due to the fact that Debris is a game service dealing with individual parts, and the fact that the MaxParts property can be a large number, causing the problem of lag. Also, check the model for textures as those objects definitely create lag.

This discussion is preserved as it was. New answers, comments, and votes are closed.