I have a problem, I am using a system with an inbuilt leaderstats however I can't find we're exactly do I have to put a new data... i tried using a find on script but I can't since a lot of similar pop up on it. Now I'm planning to make a new data using a separate script. It is possible? Then if yes what script do I have to use, a local script or script? What about the instance.new(what to put here?)
✓ ANSWER ACCEPTED
It is possible to add a data on leaderstats using instance.new?
1 answer
✓ Accepted answer
If you're trying to use leaderstats and add data, you would indeed use Instance.new to insert values into it. For an example,
local Cash = Instance.new("NumberValue",leaderstats)
Cash.Name = "Cash"
Cash.Value = 50
That code would allow a number to be stored in leaderstats, which shows in the right hand corner on the leaderboard with the name "Cash", and a value of 50 Most if not all values should work, such as StringValue, BooleanValue or IntValue
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
It is okay to use a separate script?
What does the leaderstats on the firstline mean? It is to tell that the data is leadertat?
The leaderstats in instance.new indicates the parent of the numbervalue.