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

Runservice or looping through and doing .Changed to update sizes on UI?

Asked by 2 years ago

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?

1 answer

Log in to vote
0
Answered by 2 years ago

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.

Ad

Answer this question