I've been working on a homestore but I don't know how to actually get the leaderboard to count the purchases ever made from the store by a local player.

local Database = require(script.DatabaseService)

local GlobalDataBase = Database:GetDatabase("global")

game.Players.PlayerAdded:Connect(function(Player) local leaderstats = Instance.new('Folder') leaderstats.Name = "leaderstats" leaderstats.Parent = Player

local Rank = Instance.new("StringValue")
Rank.Name = "Rank"
Rank.Parent = leaderstats
Rank.Value = Player:GetRoleInGroup(3285600)

end)

Basically I want it so purchases made from the store in and out of the game are counted on the leaderboard where it says [Username] - [Buys] - [Rank].

6 comments

1

With "Out of the game" you are reffering to the Roblox's page store?

0

Yes, I want it so purchases made on clothing from my roblox group, in and out of the game are saved to that exact player.

0

I pretty much just want somebody to create the code for me and explain how it works to me. :)

1

doesnt that mean you are requesting code? this site is for getting help with your code not getting it from someone else

0

I know, I'm asking for help to learn about leaderboards, I'm not wanting somebody to give me the code straight away because that's not the point.

0

Yes