Hey so this is less of a direct code question, but in my game I have around 6 localscripts inside StarterPlayerScripts, due to the fact that it is a multiplayer game but there are a lot of parts that I want single player. This is just because I don’t want my scripts to get too messy but would this create lag or another issue?
1 Like
Not necessarily, the more important thing is what the scripts are doing. Obviously having a bunch of different local scripts doing a bunch of loops isn’t a very good idea, but the amount of local scripts you have doesn’t matter a whole lot as long as the code inside of them doesn’t use too many resources.
If you want to see the activity of your scripts (how much they are doing), navigate to the view tab and pull up Script Performance. You shouldn’t see percentages going over the 2-3% mark. Hope this helps!
2 Likes
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.