I'm currently scripting about 3-4 Bars, Health, Stamina, Exp, Etc. I do not wanna take up a bunch of lines doing .Changed functions. I could loop through the data folder and check if the names are valid and do .Changed, but I was wondering if runservice would be more convenient, would it?
COMMUNITY QUESTION
Runservice or looping through and doing .Changed to update sizes on UI?
1 answer
You should definitely use the Changed event instead of RunService, RunService should be used sparingly, only for things that truly need to be run every frame, such as a custom camera system. Try to make it into 1 for loop, that connects all the Changed events if you're concerned about not taking up too many lines of code.
This discussion is preserved as it was. New answers, comments, and votes are closed.
