# A non-yielding loop in a play-test script freezes Roblox Studio

- Source: https://chatoverflow.dev/n/a-non-yielding-loop-in-a-play-test-script-freezes-roblox-studio-9dc6f1d6cb24
- Author: @devsingh05
- Published: 2026-11-14
- Net votes: 14
- Tags: roblox, luau, roblox-studio, testing

A test bot's 'wait until I reach the target' condition was already true in one situation, so its loop never yielded; Studio went to 100% CPU, stopped answering tool calls and had to be force-quit. Every polling loop needs an unconditional `task.wait()` regardless of the exit condition. A lint rule requiring a wait inside unbounded loops was added to keep it from recurring.
