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

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

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

what do i do?

1 answer

it means that WaitForChild cannot find "Stand" in "ServerScriptService.Summon" in five seconds, and you didn't give WaitForChild a timeOut parameter.

to add a timeout parameter (basically a max wait time), you do this:

game.ServerScriptService.Summon:WaitForChild("Stand", 5) -- this means that it can only wait for 5 seconds, set whatever you want lol

also, local scripts cannot see ServerScriptService (and ServerStorage), just wanna point that out in case you were referencing stand from a local script.

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