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

Is there any way to get every thing in the game without using for loops? [QUESTION]

Asked by 3 years ago

So what i need is getting every instance, sevice(basically everything in game) without using for loop. Why? you might be asking. Because for looping game's descendants, lags so much and theres a really big delay.

Example for loop:

for i,v in next, game:GetDescendants() do
    print(tonumber(i), tostring(v))
end -- I know that you can fix it by adding a wait but it slows down the loop by so much instead of finishing it instantly.

If you know anyway, please let me know. Thanks!

Answer this question