Hello! You should either use StringValue or NumberValues. First, if you already have a leader board then good. Otherwise, make sure you have one before posting a next step question.
Anyway here are some instructions;
- Make sure you have your button
2, Make sure you have a local Script inside that button
if you have those steps done then we can start,
in the local script type this code in;
1 | local button = script.Parent |
2 | local Player = game.Players.LocalPlayer |
3 | local Currency = Player.leaderstats.Coins |
5 | button.MouseButton 1 Down:Connect( function () |
6 | Currency.Value = Currency.Value + 1 |
This is a very basic script as well, I hope you learn some basics before asking a simple question. Questions like these may be moderated. But anyway I hoped I helped and if I did then please accept answer ;)