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

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

Asked by 3 years ago

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

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

ik its missing something but what

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 OfficerBrah 494 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago

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()
Ad

Answer this question