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

How do I make a purchase leaderboard?

Asked by 4 years ago
Edited 4 years ago

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].

1
With "Out of the game" you are reffering to the Roblox's page store? cailir 284 — 4y
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. Fquarius 0 — 4y
0
I pretty much just want somebody to create the code for me and explain how it works to me. :) Fquarius 0 — 4y
1
doesnt that mean you are requesting code? this site is for getting help with your code not getting it from someone else sean_thecoolman 189 — 4y
View all comments (2 more)
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. Fquarius 0 — 4y
0
Yes Fquarius 0 — 3y

Answer this question