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

Does changing the data on leaderstats using local script actually change it?

Asked by 1 year ago

Does changing the data on leaderstats using local script actually change it? I write a script on local script and tried to test it and it works however the other system which scan the leaderstats data didn't change so I wonder if only the local player can see that the data have change but in reality it didn't.

1 answer

Log in to vote
2
Answered by
VAnkata20 135
1 year ago

No. For a leaderstats to save to a datastore it needs a global script else it wont see that there are any changes. That because local script only access the users machine for changes and a global script access the server.

0
yes and its called replication :) local scripts wont replicate to the server only the player Puppynniko 1059 — 1y
0
very epik Puppynniko 1059 — 1y
0
Thank you guys, I'm just a new scripter and I want something to happen but I can only call the player leaderstats using LocalPlayer thats why I use local sceipt AltairCelestia 47 — 1y
0
Can you write a simple script which automatically rank the player base on the money that they have? i really don't know how to call the Player using script AltairCelestia 47 — 1y
View all comments (2 more)
0
Yeah sure just let me get home VAnkata20 135 — 1y
0
just friend me on discord and i will try to help you cuz i cant place code here VAnkataBot#1060 VAnkata20 135 — 1y
Ad

Answer this question