How do I stop lag in a Tycoon game?

I am getting lag on my Tycoon game, I’m guessing it’s from the ores. Is there anything I can do to make it lag less? The ores start lagging while moving and move slower than normal. Ore collisions are off so that is not the problem.

1 Like

Try disabling the ores’ CanCollide

1 Like

Could you give a more brief explanation of your problem? Like maybe provide a video or something.

Introduce a ore rate limit to your scripts that scale with player size. This is to make it less taxing to render on your client and server. Probably also make a script that destroys ores that are on the ground as well, or consider making ores very limited in quality so it would lag less.

you can disable ores CastShadow. you can also increase droppers cooldown (and money value)

Try make your scripts as simple as possible for example try and avoid while true do without proper waiting or checks, make sure you have anchored parts because lots of unanchored parts when falling can cause lots of lag, you can also change the lighting settings.

1 Like

How would I lower the quality of the ore.

Try and remove as many features from the ores such as cast shadow and collision. Also make sure there are no viruses if you used any free models.

Lowering quality of ore refers to removing as much resource-taxing qualities as possible, such as previously mentioned shadows and collision

Have you tried making the ores disappear if you go too far away from them? Or making the ores only appear on the client?

I said there was no collision, I turned off shadows, and I don’t use free models. It stays the same with shadows off.

I’ve tried making the ores disappear when you go a certain distance but I don’t know how to make it properly, also it lags when there is only one player.