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

How to make a non-"leaderstats" currency?

Asked by 4 years ago

So recently I decided to make a game with my friend, he does building and I do scripting, even though I have never done so before and have minimal experience with coding at all. The game is going to be realistic, and therefore minimal things that just pop up on your screen, and I want to make a currency that exists, not "leaderstats" but something I could reference on a computer screen in the game, just like if I wanted to access how much money I had in a certain bank account or something of that sort in real life. How would I go about doing this without a "leaderstats", any videos or tutorials I could be directed to? Thanks

2 answers

Log in to vote
2
Answered by
Despayr 505 Moderation Voter
4 years ago

If you don't want the leaderboard to appear, simply change the name of the folder/model that is holding the data.

Example

local folder = Instance.new("Folder")
folder.Name = "leaderstats" --will create the leaderboard

To not create the leaderboard, do;

local folder = Instance.new("Folder")
folder.Name = "PlayerData" --doesn't create the leaderboard
Ad
Log in to vote
0
Answered by
D3VRO 66
4 years ago

I'm not exactly sure what you mean by this but if you're trying to get the players in-game currency to display on something you could do something like:

TextLabel.Text = ""..leaderstats:WaitForChild("*your currency name*")
0
What I mean is that I want a currency, but its not shown on a leaderboard somewhere that shows all the players money, but something that I could just show on a decal ExtentRift 0 — 4y

Answer this question