I am working on a test game but it needs currency to buy certain things
We make something called leaderstats here's the script
and btw scripting helpers.Org is not a request site
game.Players.PlayerAdded:Connect(function(player) local leaderstats = Instance.new("Folder") leaderstats.Name = "leaderstats" leaderstats.Parent = player local coins= Instance.new("IntValue") coins.Name = "Coins" coins.Value = 0 coins.Parent = leaderstats end)
To buy something make a local script in a UI button for example
player.leaderstats.Coins.Value = player.leaderstats.Coins.Value - 100
Under here make the script do something
Closed as Not Constructive by Dovydas1118, Soban06, nekosiwifi, and WizyTheNinja
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?