You’re leaving memory leaks by not disconnecting/destroying the tweens, there are too many if statements (cognitive complexity over 7), as mentioned above you should use i-pairs for arrays and avoid using wait, you should organize more your code.
This loading screen wouldn’t affect the game’s performance, but it can definitely be improved.
I’ll leave these resources here: