Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

ReplicatedStorage not working?

Asked by 8 years ago

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

Log in to vote
0
Answered by 8 years ago

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
0
Why woukd younrepeat until a waitforchild returns true? drahsid5 250 — 8y
0
Data is the folder but anyway it should work. I test it later. Thanks. NAUSHNIK52 0 — 8y
Ad
Log in to vote
0
Answered by
drahsid5 250 Moderation Voter
8 years ago

Use WaitForChild:

game.ReplicatedStorage:WaitForChild("Data")

Answer this question