Is it really that inefficient to have a local script, server script, and module script inside each of my weapons? Is there a better way of handling it that isn’t too complicated?
One module script inside your gun that contains settings for it.
One localscript inside your gun that contains clientside for it.
Serverscript in serverscriptservice that manages all serversided gun thing.
Thats a better way of organizing, without being complicated.
If you want to go complicated. Make a local script client read whatever gun is equipped and apply the miscellanious client stuff, aswell as being functional and relaying information to the server.
Why you would use module script, if you are using it for settings i recommend to make configuration folder which it contains values
Do not remove local and server script because local script needed if you are making ammo hud or finding mouse (which is recommended for guns) so make sure that local is the main script, server script needed for making raycast, tagging humanoid or dealing damage which is base for gun too but local script controls server script using remote event
So in my opinion, remove module script if you using it for settings and do not remove local and server scripts
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.