Rank Center Problems
So I don’t actually know how to set up gamepasses(I have them created)
Code:
local groupId = 4976539
local api = require(4690204259)("", "key", groupId)
local passes = {
}
game.Players.PlayerAdded:Connect(function(plr)
local plrRank = plr:GetRankInGroup(groupId)
for i = 1,#passes do
local pass = passes[i][1]
local rank = passes[i][2]
local name = passes[i][3]
wait (8)
if plrRank < rank and game:GetService("MarketplaceService"):UserOwnsGamePassAsync(plr.UserId,pass) then
api.setRank(plr.UserId,rank)
game.ReplicatedStorage.RemoteEvent:FireClient(plr,"You have been ranked to "..name..".")
break
end
end
wait(20)
plr:kick("Sorry, I believe you do not have any own Passes OR YOU ARE NOT IN THE GROUP.")
end)
At “passes” what do I write and how?