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

5 comments

0

Use a LocalScript.

0

This script looks like an absolute disaster to me

0

Ok

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?

0

line 9 there is a WaitForChild() so basically "Full" is not a child of PlayerGui