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

is it better for one script to handle all the parts in workspace?

Say if I have a master script in ServerScriptService, it controls everything in the workspace such as:

when player touches a part, they get damaged

when player move into a certain range of a monster, the monster will start chasing them

when the monster die, it respawns, continuously

The main goal is to reduce lag and the amount of scripts running at once, but I'm not sure if it'll work as efficient or it would really reduce any lag due to how many things one script has to handle at once.

Any answer will help, and will definitely accept the best answer given. Thank you.

1 answer

✓ Accepted answer

Hmm. I'd recommend using multiple scripts, as then it would be easier to tell what a specific function is for, etc. Having one script still works though, and your game will still work the same as if you had many scripts. Whichever you think is easier to work with, I'd go for.

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