Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Do I need a ton of different scripts to run my GUIs (textbuttons etc)?

Asked by
lolzmac 207 Moderation Voter
5 years ago
Edited 5 years ago

Not exactly a question about specific code, but I'm curious about just how many scripts I need for things like text buttons and other GUI assets. Should I have a local script under every text button to make it run easier, or should I make a GUI master script? Is there a benefit to one or the other? Does it even matter?

0
Most of the time only 1, sometimes it can be 2, and sometimes it can be 3. It's really really unlikely for someone to use 4 scripts for that scenario. TheOnlySmarts 233 — 5y
0
typically i think its better practice to confine gui related stuff to a single script. ie id want a character creation menu to be handled by one local script (the gui stuff anyways) Gey4Jesus69 2705 — 5y
0
I realize that it's probably better practice, but are there any kind of performance issues with tons of local scripts or am I just exaggerating? lolzmac 207 — 5y
0
More scripts will increase the physical size of the game, but I don't think it will cause any performance hit unless you are running a ton of loops and stuff inside each script. SteamG00B 1633 — 5y
View all comments (4 more)
0
Scripts aren't physical. What are you on about. User#24403 69 — 5y
0
The performance difference, if any, is negligible. But you can use one whole script for maintainability. User#24403 69 — 5y
0
So the only issue with multiple local scripts is efficiency of the code? lolzmac 207 — 5y
0
@incapaxian I never said scripts were physical? I said that it will increase the physical size of the game, as in there will be more physical storage space required to hold the game. SteamG00B 1633 — 5y

1 answer

Log in to vote
-1
Answered by
Cyrakohl 108
5 years ago

In my personal preference I would use only one script as it’s easier

0
agreed raid6n 2196 — 4y
Ad

Answer this question