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

Reducing Lag via Scripting

I dont want anyone to write massive blocks code for me, I am wondering if there is a way to speed up gameplay in your game via reducing lag?

Mabey there is a way to remove all parts that arnt in anyone's line of view?

1 answer

✓ Accepted answer

Yes, there are certain ways you can reduce lag via scripting, but there is no general answer. It is very specific to your game and implementation. The best answer I can give you in a general sense is to turn on Workspace.StreamingEnabled, which will stream parts to the client instead of displaying them all at once.

ROBLOX already hides parts that aren't seen, as far as I know. They will also disable rendering parts which are far away if the game is running slowly.

3 comments

1

Ok then, thanks. Is there anything you can go with "Debris"?

0

The Debris service is more for dealing with things like bullets and explosions debris. It will remove an object after a set time if you use the AddItem method, or it will remove older objects if the MaxItems property is exceeded.

2

kden thx bra

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