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

Gui to leaderboard can it be done? [closed]

Asked by 10 years ago

Lets say a gui had data on it eg. Chips:250, and I wanted to move that data up onto a leader board so I could give them 250 money in exchange for chips so then they would have 0 chips and 250 money, and reversing it would give them 0 money and 250 chips. I am wondering How I would actually replace the data into the leader board **OR**** make a script that I can just say have a gui that lets me key in the number under the title "CHIPS" and another with the title "MONEY" that crosses between the gui and the Leader board. For more info Personal Message me

Thanks! Luckytyler4

0
This is a studio question, not a scripting. Just add a screengui. PiggyJingles 358 — 10y

Closed as Not Constructive by User#2

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
1
Answered by
BlueTaslem 18071 Moderation Voter Administrator Community Moderator Super Administrator
10 years ago

Of course!

You'd need to create the values for leaderstats just like normal, and then manipulate them in whatever scripts are controlling your GUIs / managing your money / chips.

See here on the Wiki for describing how you set up leaderboards

You can set the values just like normal NumberValue objects, so wherever you keep track of your chips and money you simply have to also store that number to their corresponding leaderstats for that one player.

Ad