Output message help

Every time i test my game on roblox studio, i get this message in the output, i dont know what this is, and I would like to know what this means:

Infinite yield possible on ‘Players.dav2777.leaderstats:WaitForChild(“Money”)’ - Studio

It’s basically saying that there’s a chance your code may pause infinitely if Money doesn’t exist in leaderstats. This usually happens if it’s taking a few seconds to wait for the instance, but if it exists you don’t have to worry about it unless you one day remove Money

This happens when you do a object:WaitForChild(name) but the object you are looking for never appears

As the others have said, its a warning (yellow text). It’s essentially saying that there’s a chance that “Money” doesn’t exist under “leaderstats”. Since this is a datastore context

  1. go to your datastore script and see what the instance’s “Name” is.
  2. edit the WaitForChild call’s argument to this name.
1 Like