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

Infinite Yield Possible problems?

Asked by 5 years ago
local plr = game:GetService("Players")
local actualplr = plr:GetPlayerFromCharacter(script.Parent.Parent)
local mvc = script.Parent.MaxValueChecker
local plate = script.Parent.Handle.NCounter.SurfaceGui.Counter
--if actualplr.leaderstats.Apples.Value == mvc.MaxValue.Value then
--  actualplr.PlayerGui.FullNotifier.Frame.Visible = true
--end
local signal = actualplr.leaderstats.Apples.Changed:Connect(function()
    local gui = actualplr.PlayerGui:WaitForChild("Full",30)
    print("P1")
if actualplr.leaderstats.Apples.Value == mvc.MaxValue.Value then
    print("P2")
        gui.Frame.Visible = true
            print("Thanks!")
    end
end)

It says infinite Yield Possible

0
Use a LocalScript. User#21908 42 — 5y
0
This script looks like an absolute disaster to me DeceptiveCaster 3761 — 5y
0
Ok bencAdenc 0 — 5y
0
Usually Infinite Wield happens when you have like a variable with :WaitForChild() and no time for the wait, any loop or infinite wait on it? utrabem 5 — 5y
0
line 9 there is a WaitForChild() so basically "Full" is not a child of PlayerGui HappyTimIsHim 652 — 5y

Answer this question