Script yields forever and can't find an instance that clearly exists

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!

I want the script to find the frame

  1. What is the issue? Include screenshots / videos if possible!

It yields for all eternity

Image of hierarchy

  1. What solutions have you tried so far? Did you look for solutions on the Developer Hub?

I’ve tried looking everywhere, but it doesn’t seem like anyone has the same issue as me

local PlayerService = game:GetService("Players")
local Player = PlayerService.LocalPlayer
local PlayerGui = Player:WaitForChild("PlayerGui")
local StatusBillboard = PlayerGui:WaitForChild("StatusBillboard")
local BillboardTemplate = StatusBillboard:WaitForChild("Template")
local Frame = BillboardTemplate:Clone()
Frame.Parent = StatusBillboard:WaitForChild("Holder")--This is where it yields for all eternity, which it clealry shouldn't

If anyone could explain why the script can’t find any of the children of the clone please tell me!
OBS - Everything has Archivable = true

1 Like

please send a screenshot of the error

It is just the basic infinite yield possible warning, no error

Yeah meant warning my bad. But yeah is the “Holder” instance in the Explorer when that warning appears (in run-time I mean)

Possible that it got removed by another script?

Oh my god… You’re right. When clearing the holder frame I refered to the wrong thing to clear and I cleared everything. I fixed it and it is working now!

Thank you!


When running the game, you should take a look at the PlayerGui to check if the StatusBillboard is there.

Yea, did that and found what the problem rather quickly!

1 Like

aha no problem lol. Done that before

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.