Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

ReplicatedStorage not working?

Hello. Today I found that ReplicatedStorage not working on server. In Studio and Test Server works fine, but not on standart server. I have an IntroGui in ReplicatedFirst. It works by Local scripts.

repeat wait(0.1) until game.ReplicatedStorage.Data

This string awaits until ReplicatedStorage is ready and then IntroGui load needed info from Data folder. Everything worked previously, but not now. Why? Is it Roblox problem?

2 answers

You need to wait for the "Data" in ReplicatedStore like this:

repeat wait(0.1) until game.ReplicatedStorage:WaitForChild("Data") -- assuming its a tool or something

2 comments

0

Why woukd younrepeat until a waitforchild returns true?

0

Data is the folder but anyway it should work. I test it later. Thanks.

Use WaitForChild:

game.ReplicatedStorage:WaitForChild("Data")

This discussion is preserved as it was. New answers, comments, and votes are closed.