My game was claimed to have too much active scripts, what should I do about this situation to reduce script use when I need ALL of them for my game to work?
COMMUNITY QUESTION
What is the best way to reduce script use when there are too many active scripts?
1 answer
Try to use Remote Events/Functions, bind actions and get rid of while true do's and wait()/WaitFor()'s absolutely wherever it is possible.
4 comments
0
Are u zaying I should not use loop scripts
0
yes, avoid loop scripts when possible, else you're using resources waiting for stuff to happen
0
But if I disable it then would it still be ok for loops to be in my game
0
And then enable when needed
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
you're not giving much information to go off of, but one way you could combine them is to use the spawn() function to run multiple lines at once, which will let you combine multiple scripts together
I have a game that requires scripts to work and roblox tells me that my game has too many active scripts and I don't know how to fix this without removing them
The same thing happened to me in my game car. I just combined scripts and deleted some of the parts. I had the same parts that I had removed and I put them back. Also check out this: https://scriptinghelpers.org/questions/16761/spawn-function-what-is-it-what-is-it-used-for-in-what-ways-is-it-different-than-coroutines