So something I have been trying for months now and I still can’t find it is how to get all the gamepasses a player created, kind of like a Pls Donate! thing. I have made a YouTube tutorial on how to make a Pls Donate! game and everyone has been constantly asking me for gamepass support. All the other scripts to get all gamepasses a player created that I found on the Dev Forum do not work for me. If any of you can help me with this, that would be greatly appreciated
local http = game:GetService("HttpService")
local url = "https://catalog.roproxy.com/v1/search/items/details?Category=3&CreatorName="
proximityPrompt.Triggered:Connect(function(plr)
local data = http:JSONDecode(http:GetAsync(url .. plr.Name)).data
if data then
game.ReplicatedStorage.RemoteEvent:FireClient(plr)
nameLabel.Text = plr.Name .. "'s Stand"
proximityPrompt.Enabled = false
table.sort(data,
function(a,b)
return a.price < b.price
end
)
for i, item in pairs(data) do
local newButton = script.DonateButton:Clone()
newButton.Text = item.price .. "R$"
local id = Instance.new("IntValue", newButton)
id.Value = item.id
newButton.Parent = itemsScroller
itemsScroller.CanvasSize = UDim2.new(0, itemsScroller.UIListLayout.AbsoluteContentSize.X, 0, 0)
end
game.Players.PlayerRemoving:Connect(function(plrLeaving)
if plr == plrLeaving then
nameLabel.Text = "Unclaimed!"
proximityPrompt.Enabled = true
for i, child in pairs(itemsScroller:GetChildren()) do
if child:IsA("TextButton") then child:Destroy() end
end
end
end)
end
end)