This is a bizarre issue that started happening to me a few days ago. Whenever I Play Test in studio, any and all “wait()” calls of any length [wait(1), wait(.1), wait(10), etc.] delay the code CONSIDERABLY longer than they should. The length of delay seems to be variable, but in some cases I’ve had 2 wait()'s delay the script by upwards of 30 seconds.
This occurs every time I try to play the game in test mode. I have tried restarting / reinstalling Roblox Studios. However, it seems to only occur in a few places - for me [https://www.roblox.com/games/1609536135/Escape-Room-DEMO] most noticeably. Also, the actual live / Roblox Client versions of the game experience no improper lag or timing issues.
I’m not sure what can be done to help resolve this, but it certainly is a strange behavior that is rather annoying when trying to develop a game. I’m going to keep messing around with Studio to try and see if I can find an actual cause for this [i.e. if it’s something I’m doing or a bug with the specific place, etc.]