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

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

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

✓ Accepted answer

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.

6 comments

0

yes and its called replication :) local scripts wont replicate to the server only the player

0

very epik

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

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

0

Yeah sure just let me get home

0

just friend me on discord and i will try to help you cuz i cant place code here VAnkataBot#1060

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