local playerGui = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local domainGui = playerGui:WaitForChild("DomainUI")
local frame = domainGui:WaitForChild("ViewportFrame")
local image = frame:FindFirstChild("ShrineImage")
if image then
print("yes")
else
print("no")
end
frame.Visible = true
No matter what I change the names too it always shows the frame but prints “no”. I would like help as it detects the frame and its parents but it can’t find the decedents of the frame. (Its in a localscript in StarterPlayerScripts named “LocalScript”)
local frame = domainGui:WaitForChild("ViewportFrame")
The code I showed on top is most likely the problem as they can’t find a child with the name ViewportFrame, WaitForChild looks for the child’s name, you should try :WaitForChildOfClass.