#Does anyone know how to make it to were you have to be a certain rank in a group to buy something?

12 messages · Page 1 of 1 (latest)

gleaming pine
#

(OP has no scripting experience)

#

In any case, I don't believe you can prevent players from buying a Marketplace asset, @unique delta

#

There isn't much of a point to doing this if I can find the asset on the website

pearl viper
#

player:GetRankInGroup()
and marketplaceservice:PromptPurchase()
for example:
(also keep in mind i have never done anything with ugc)

--this should be client
local player = game.Players.LocalPlayer
local mps = game:GetService("MarketplaceService")

local ugcid = 1
local groupdata = {
    MinRank = 1,
    MaxRank = 2,
    GroupId = 1,
}

local rank = player:GetRankInGroup(groupdata.GroupId)

if rank >= groupdata.MinRank and rank <= groupdata.MaxRank and not mps:PlayerOwnsAsset(player, ucgid) then
    mps:PromptPurchase(player, ugcid)
end
raw krakenBOT
#

studio** You are now Level 3! **studio

pearl viper
gleaming pine
#

Send me the asset ID

#

How have you configured that?

#

What makes it a "free limited in game"?

#

What makes it that way?

#

Interesting. Then you're all set

#

Why would a player be kicked from the experience for not meeting the rank requirement?