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

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

Asked by 3 years ago

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

what do i do?

1 answer

Log in to vote
0
Answered by
NGC4637 602 Moderation Voter
3 years ago

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.

Ad

Answer this question