Not a Valid Member When it actually is

The output keeps saying the "Screen is not valid member of Model “Workspace.SurfaceShops.ShopFive” when it actually is, do u have any suggestions how to fix it?


In game

Other models are the same parts but diff models name for the config but it was working but then randomly it stopped working

Typo. its ShopFour
So it’d be workspace.SurfaceShops.ShopFour

image

You opened ShopFour in the picture, not ShopFive.

image
Oh yeah lolol but the same problem very weird because the other models working good

Do you have any lag in your game? Screen may not have loaded right away, and if so it might be better to use Instance | Roblox Creator Documentation

I wouldn’t recommend using .
:WaitForChild("instanceName") would be better so;

workspace:WaitForChild("SurfaceShops"):WaitForChild("ShopFive")
-- And rest of the code

If :WaitForChild doesn’t work, do you mind sharing the code that isn’t working?
Would help more to debug this issue

Yes like that. Does that work for you?

Uh, mind sharing the full code and tell which line it’s occurring in? But yes that line will work as well.

Which Line 55 is it relating to? In SurfaceShopLocal on Line 55 there is an end

Kind of weird… Maybe add a repeat until line at the start of the script that waits until the game is loaded? Like this:

repeat
    task.wait()
until game:IsLoaded()

Missing :FindFirstChild()'s and :WaitForChild()'s

Example:
ShopUIClone.Adornee = Product.ShopsDirectory.Screen
to

ShopUIClone.Adornee = Product.ShopsDirectory:FindFirstChild("Screen")
1 Like