How do I make a script work even though a while function is occurring

So I made a system that would give the game’s fps using the while, but by doing this the script will not read what is after the while loop. Some way to make it use the while but also the script to read the next lines after this loop.

You can run the while loop in a seperate thread using coroutine or spawn

1 Like

Ok so I will study these functions, thanks.