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

Quick question. Data store [?]

Hey, I'm just wondering if Data store is all different in each server. So say I set a value to A and a Value to B in 2 separate servers, they wouldn't effect one another trying to over ride each other?

2 comments

2

Nope, unless you use a universe.

0

^

1 answer

Datastores are saved to the Game (as opposed to the Place). Every Server is a part of this Game, so all Servers (and all Places in the Game) share access to the same Datastore.

If you want a global thing only accessible (and thus, modifyable) to a single Server instance, use the _G Table, which is shared to all Scripts. (Technically, _G is different for each Client as well. That is, the Server and each Player gets their own, unique copy.)

1 comment

0

Ok thanks for that!

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