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

local Stand = script:WaitForChild("Stand"):Clone() ?

local Stand = script:WaitForChild("Stand"):Clone() -the code

Infinite yield possible on 'ServerScriptService.Summon:WaitForChild("Stand") the error

ik its missing something but what

1 comment

0

the "infinite yield possible" warning means that WaitForChild has been waiting for a long time, likely because "script.Stand" is never created. it's just a warning though (not an error), so as soon as it finds "script.Stand", the rest of the script will run

1 answer

To stop infinite yield warnings pass a second parameter to WaitForChild

local timeout = --some number (I'm seconds) after which the script will stop waiting.

local stand = script.WaitForChild("stand", timeout):clone()

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