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

Quick question about Replicated Storage?

The question I want to ask about Replicated Storage is, if I would to use a Server Script saving something into the Replicated Storage WOULD it affect the ONLY 1 Player or all?

Here's what I mean:

Example:

game.ReplicatedStorage.BoolValue.Value = true

If I would change the value of BoolValue to True would it affect everyone?

The reason I am writing this also is, because I am not sure where to Store Players Shop Items they have purchased.

1 comment

0

If you change it with a server script, it should change for everyone i think. If you want to save shop items when they leave the game, you could change it inside the players data or make a value inside player/for every player in replicated storage.

1 answer

ReplicatedStorage is basically a storage that server and client can access, The difference is With ServerStorage is a Storage only accessed to the server so the client can't access it.

Here are all the storage services

-- This is a server script

-- Replicated storage
game:GetService("ReplicatedStorage"):FindFirstChild("BoolValue").Value = true

-- Server storage
game:GetService("ServerStorage"):FindFirstChild("BoolValue").Value = true

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