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?
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?
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.
This discussion is preserved as it was. New answers, comments, and votes are closed.
3 comments
Ok then, thanks. Is there anything you can go with "Debris"?
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.
kden thx bra