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
You opened ShopFour in the picture, not ShopFive.
Oh yeah lolol but the same problem very weird because the other models working good
Scottifly
(Scottifly)
January 12, 2022, 8:35am
5
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.
mitex7183
(mitex)
January 12, 2022, 8:43am
12
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()
mitex7183
(mitex)
January 12, 2022, 11:45am
14
Missing :FindFirstChild()
's and :WaitForChild()
's
Example:
ShopUIClone.Adornee = Product.ShopsDirectory.Screen
to
ShopUIClone.Adornee = Product.ShopsDirectory:FindFirstChild("Screen")
1 Like