Hello guys so basically I have gamepasses each one gives a different amount of the dropped currency. How do I make it show on this leaderboard whenever someone buys one of the gamepasses. Don't tell me what code to write but what should i do the idea of it. How do i make a gamepass register on the leaderboard when i buy it?
local Players = game:GetService("Players")
local function leaderboardSetup(player)
local leaderstats = Instance.new("Folder")
leaderstats.Name = "leaderstats"
leaderstats.Parent = player
local gold = Instance.new("IntValue")
gold.Name = "Dropped"
gold.Value = 0
gold.Parent = leaderstats
end
Players.PlayerAdded:Connect(leaderboardSetup)