Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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.

2 comments

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?

0

Thanks for the inspiration, map.Spawns isn't real, it is supposed to be map.SpawnLocations.Spawns. Thanks!

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.