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

Quick question about Replicated Storage?

Asked by 3 years ago

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.

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. BulletproofVast 1033 — 3y

1 answer

Log in to vote
0
Answered by
MattVSNNL 620 Moderation Voter
3 years ago

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
Ad

Answer this question