Team Test Server Issue Beta Feature: Generalized iteration in Luau

Using this in normal play mode works as expect. However I been having this issue where I cannot use the same code in a Team Test Server.

for i, v in script:GetDescendants() do

end

Output in Team Test Server:
image

Normal Play:

image


repo.rbxl (47.8 KB)

Thanks for the report!

We’ve filed a ticket to our internal database, and we’ll follow up when we have an update for you.

1 Like

The generalized iteration feature is undergoing limited smoke testing on production which is why you happened to see it work in a live game, but it isn’t released yet, so there’s no guarantee that it will keep working or work on every platform.

Please wait for an announcement on it before using it.

The reason that you unfortunately don’t see an error in the Studio script editor is that for ... in SOMETHING do is always at least syntactically valid for any SOMETHING even though it may or may not actually do what you intend depending what the SOMETHING you substitute in is (and whether the new iteration semantics are released).

2 Likes

I was wondering, is the Team Test a whole different environment which Beta Features don’t apply to (at least some)?

Thanks!

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.