#Optimizing Games
1 messages · Page 1 of 1 (latest)
you can use ctrl + shift + f for your second question
thank you
template?
like a framework?
there's plenty of youtube tutorial
hold on
yeah exactly
** You are now Level 1! **
i look at a few, but they all got pretty bad reviews
i also saw a lot of videos on organizing with modules which i dont get the point. i know that you can reuse code in module scripts, but I don't get the idea of loading modules and using them for organization?
oh yea thats what i was thinking before too
dont mind the review
basically
if you write it in a module
its cleaner
basically you write all of your codes in module
instead of having 10 differnt local script with 10 different modules like
SprintHandler
InputHandler
just use a module Loader
why not just put them all in a regular script?
in a module right
would it operate the same way as a regular script then?
yes
are u adding the functions to the table and then calling them at the end?
yes
its more organized
like would you prefer all module script and 1 local scirrpt
or some module script some local script
ig all module scripts
exactly
its harder to implement tho
but its cleaner
the more you do it the easier
what makes it harder?
since we're all used to local script and server script
you'll have to get used to making it all in a function and stuff
its not really that much harder lowkey
is it only responsible for loading the modules and nothing else?
yes
it basically just call all the modules so it can run like a normal script
got it
so rn i have something like this
but on the server side
idk where to do the same thing
so i have like local scripts all over the place
what do u think abt my server side modules?
I've also seen some client modules like this
same thing
Should i do that ?
yes
you can sort it further
like
Player Folder
Egg Folder
also
Data modules dont need to be laoded
its best to put it in another folder or smtg
will it cause an issue if its loaded?
oh wait i get what ur saying
wait no i dont
** You are now Level 2! **
if u not require it how will the code inside it run
Oh
no
just write a normal script
paste it in a function
and call that function
in the loader
personally speaking i never even used module loader in my life lol
yes
i use modules
but not modules based
i feel like its easier to understand what is a util what is a manager
oh ok
just use module loaders also another good way to seperate client from server
in the init() function, can I also initialize variables in it. I often need to reference gui that is from the player so i need to wait for the player to come thru first.
I currently have something that look like this.
what do you think abt it?
Another example:
@queen pollen can i get ur opinion too?
I also kinda like this because it reminds me of instantiating java var