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

How would I make a Datastore variable, but for everyone?

Asked by 6 years ago
Edited 6 years ago

For example, let's say you have a variable that increases by one every time a button is pressed. Let's also say, that you want variable to be saved every time that button is pressed. Naturally, I was thinking you'd use a datastore, but it'd save a different number for everyone. So how could I make it save the same number for everyone?

0
you'd have to save that number for every player on the server by using the 'for' function. (as an example) decla123 45 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

You can basicly it so there is an another leaderstat called personal amount and it adds not to the server stat but to player

Ad

Answer this question