As a Roblox developer, it is impossible to know that a WaitForChild()
statement will yield in Script Editor.
Right now, error()
has an “error” message saying that: “Unreachable code; previous statement always errors”, something like this for WaitForChild()
and FindFirstChild()
would be nice if pathway or name isn’t correct and will always yield. Having a message would seriously improve my workflow.
A message like: Yielding statement (statement always yields), consider finding the cause
?
If Roblox is able to address this issue, it would improve my development experience because I wouldn’t have to run studio / play my game in order to see this error if accidentally yields for a reason.