Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why do I get an "Infinite Yield Possible" in this script?

Asked by
N43FGXL 169
4 years ago

I get the yellow error: "Infinite Yield Possible" on line 1 of this script.

    local MapSpawns = map:WaitForChild("Spawns"):GetChildren()
    for i,v in pairs(MapSpawns) do
        if v:IsA("Part") then

        end
    end 

This is a chunk of my larger script.

If you have any questions feel free to ask me.

3
Infinite yield as you may or may not know means the ability to wait forever with nothing happening, keeping your script stuck on that one WaitForChild. are you sure "Spawns" is spelled correctly and actually exists? Si_SenorTN 25 — 4y
0
Thanks for the inspiration, map.Spawns isn't real, it is supposed to be map.SpawnLocations.Spawns. Thanks! N43FGXL 169 — 4y

1 answer

Log in to vote
0
Answered by
N43FGXL 169
4 years ago

PROBLEM RESOLVED

Ad

Answer this question