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

Quick question. Data store [?]

Asked by
Soliate 80
9 years ago

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
Nope, unless you use a universe. Discern 1007 — 9y
0
^ Goulstem 8144 — 9y

1 answer

Log in to vote
1
Answered by
adark 5487 Badge of Merit Moderation Voter Community Moderator
9 years ago

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.)

0
Ok thanks for that! Soliate 80 — 9y
Ad

Answer this question