So I get this errror:
Infinite yield possible on 'Players.funnyfunns.PlayerGui.Topbar_options.BAC.Settings:WaitForChild("Next")'
Heres where Irefernce it:
local bacPlaces = bac:WaitForChild('Places')
local bacAbout = bac:WaitForChild('About Page')
local bacSettings = bac:WaitForChild('Settings') -- heres the main problem
-- about
local aboutNext = about:WaitForChild('Next')
-- settings
local settingsNext = bacSettings:WaitForChild('Next') -- here
--places
local placesNext = places:WaitForChild('Next')
local places_minigames = places:WaitForChild('minigame')
local places_hangout = places:WaitForChild('hangout')
Heres the script:
settingsNext.Activated:Connect(function()
settingsFrame.Visible = false
wait(.4)
bac.Visible = true
end)
So I JUST chnaged some stuff heres the script"
local bacPlaces = bac:WaitForChild('Places')
local bacAbout = bac:WaitForChild('About Page')
local bacSettings = bac:WaitForChild('Settings')
-- about
local aboutNext = about:WaitForChild('Next')
-- settings
local settingsNext = script.Parent:WaitForChild('Settings'):FindFirstChild('Next')
--places```
The Infinite Yield Possible
warning provided by Roblox occurs when there’s a huge delay - scripting wise - for your :WaitForChild()
to retrieve the target child. It really isn’t anything to worry about and if you want to silence it, you can just add a time out as you pass the method: :WaitForChild("MyChild", 1)
, that time out being in seconds.
If the time out hits and no child is found then it’ll error out, meaning there’s something wrong in your code.
1 Like