Where should I put my GUI scripts?

I’m in the middle of making a game and decided that I needed to clean my code up a bit. I want to put most of the code in module scripts and then run the modules in a small number of scripts and localScripts.

Everything was going good until I came to my GUI Scripts. All of them are localScripts and use remote events to do anything on the server; so what should I do with those?

Also, If you think that I should organize my code different than what I explained in the first paragraph, It would be great if you told me.

Tl;Dr:
Where should I put my GUI Scripts for a nice, organized game?

For GUI Scripts you could either put them inside of the GUI itself or store the scripts in StarterPlayerScripts. Both will just eventually get replicated to each client when a player joins and both will work.

5 Likes

If they’re scripts for the gui, maybe place in StarterGUI, or where the UI Is located.

2 Likes

yea, place them in the gui accordingly. Let’s hope they are named! That is the best place and name them if you have too.