I’m making a script that loads items into the shop which are stored in folders inside of replicated storage, but it sometimes can’t find the “Lightning Skins” folder inside the “Shop” folder, but sometimes it can, I have no idea why it does this, any help is appreciated!
Maybe you should use 'WaitForChild" Instead of “FindFirstChild” At this line
'Local findgroup=game:GetService(Replicated Storage) :WaitForChild(“Shop”) :FindFirstChild(group) ’
The reason I say this because WaitForChild waits for 5 seconds till it finds it but findFirstChild will not wait,
Why use WaitForChild?
Sometimes game takes time to load everything in the game so try ‘WaitForChild’ . Btw I still didn’t test see if it would work.
This is a very late reply, however, I might have figured out this problem for anyone having similar issues. I had the same problem but I added in a simple