Pls donate stand issue

hiii! I’m over here trying to have a pls donate stand working but its giving me some of the issues. I’m geting 404 not found for shirts and etc. While I do have shirts, gamepasses & more.
Snimka zaslona 2025-02-24 212547

script:

local module = {}
local dss = game:GetService(“DataStoreService”)
local http = game:GetService(“HttpService”)
local mps = game:GetService(“MarketplaceService”)
local mainStore = dss:GetDataStore(“MainDataStore”)

module.assetTypeIds = {
[“T-Shirt”]=2,
[“Shirt”]=2,
[“Pants”]=2,
[“Pass”]=2,
}

module.getItems = function(assetId,plrId)
local allItems = {}
local success, errormsg = pcall(function()
local done = false
local nextPageCursor
while done == false do
local data
if nextPageCursor then
data = http:GetAsync(“https://www.roproxy.com/users/inventory/list-json?assetTypeId=“..tostring(assetId)..”&cursor=“..nextPageCursor..”&itemsPerPage=100&userId=”…tostring(plrId))
else
data = http:GetAsync(“https://www.roproxy.com/users/inventory/list-json?assetTypeId=“..tostring(assetId)..”&cursor=&itemsPerPage=100&userId=”…tostring(plrId))
end
if data then
data = http:JSONDecode(data)
local items = data[“Data”][“Items”]
for _, item in pairs(items) do
table.insert(allItems, item)
print(item[“Item”][“Name”])
end
if data[“Data”][“nextPageCursor”] then
nextPageCursor = data[“Data”][“nextPageCursor”]
–print(nextPageCursor)
else
done = true
end
else
warn(“No data.”)
end
end
end)
if success then
–print(“Successfully retrieved data.”)
else
warn(errormsg)
end
local createdByUser = {}
for i, item in pairs(allItems) do
pcall(function()
if (item[“Creator”][“Id”] == plrId) and (item[“Product”][“IsForSale”] == true) then
table.insert(createdByUser,item)
end
end)
end
–print(createdByUser)
–print(tostring(#createdByUser)…" items remain.“)
for _, item in pairs(createdByUser) do
–print(item[“Item”][“Name”],”-",item[“Product”][“PriceInRobux”])
end
return createdByUser
end

module.loadItems = function(stand, plr)
for _, frame in pairs(stand.ItemsPart.Items.ScrollingFrame:GetChildren()) do
if frame:IsA(“Frame”) then
frame:Destroy()
end
end
local tshirts = module.getItems(module.assetTypeIds[“T-Shirt”],plr.UserId)
local passes = module.getItems(module.assetTypeIds[“Pass”],plr.UserId)
local shirts = module.getItems(module.assetTypeIds[“Shirt”],plr.UserId)
local pants = module.getItems(module.assetTypeIds[“Pants”],plr.UserId)
print(#tshirts,“T-Shirts found.”)
print(#shirts,“Shirts found.”)
print(#pants,“Pants found.”)
print(#passes,“Passes found.”)
local allItems = {}
local tble = {tshirts,passes,shirts,pants}
for _, itemType in pairs(tble) do
for _, item in pairs(itemType) do
table.insert(allItems,item)
end
end
–print(“Total items found:”,#allItems)
table.sort(allItems, function(a, b)
return a[“Product”][“PriceInRobux”] < b[“Product”][“PriceInRobux”]
end)
for _, item in pairs(allItems) do
if stand.ClaimedUserName.Value == plr.Name then
local frame = script.Template:Clone()
frame.ItemID.Value = item[“Item”][“AssetId”]
frame.Cost.Value = item[“Product”][“PriceInRobux”]
frame.ItemTypeId.Value = item[“Item”][“AssetType”]
frame.RobuxCost.Text = “$”…tostring(item[“Product”][“PriceInRobux”])
frame.Parent = stand.ItemsPart.Items.ScrollingFrame
end
end
end

module.clearStand = function(stand)
–print(“Clearing stand…”)
stand.SignPart.SurfaceGui.UserMessage.Text = “your text here”
stand.Base.ClaimPrompt.Enabled = true
stand.Base.ClaimedInfoDisplay.Enabled = false
stand.Base.Unclaimed.Enabled = true
stand.Claimed.Value = false
stand.ClaimedUserName.Value = “”
for _, frame in pairs(stand.ItemsPart.Items.ScrollingFrame:GetChildren()) do
if frame:IsA(“Frame”) then
frame:Destroy()
end
end
end

module.updateStandsEarned = function()
for _, stand in pairs(game.Workspace.Stands:GetChildren()) do
if stand.Claimed.Value == true then
local plr = game.Players:FindFirstChild(stand.ClaimedUserName.Value)
if plr then
stand.Base.ClaimedInfoDisplay.UserRaised.Text = “R$”…tostring(plr.leaderstats.Raised.Value)…" Raised"
else
–print(“no player but claimed”)
end
end
end
end

module.findItem = function(itemID)
for _, stand in pairs(game.Workspace.Stands:GetChildren()) do
for _, frame in pairs(stand.ItemsPart.Items.ScrollingFrame:GetChildren()) do
if frame:IsA(“Frame”) then
if frame.ItemID.Value == itemID then
return frame
end
end
end
end
end

return module

I’m not sure if Roproxy still works but yeah when you click the link it throws a 404 error

So then what should I use… or how to fix it…

1 Like

Well you can host your own proxy

https://roproxy.com redirects me to roblox website.

Yeah I noticed that too. Have you looked at the “make your own proxy” post?

idk how

ROBLOX NEEEDS EXTRA STUFF

This one

but how will my proxy work with the script…*

@Doomcolp

Why not just make your own game instead of something that has been stolen and reuploaded thousands of times already?

5 Likes

I managed to host my proxy now but im still getting 404 not found

Sorry about that, I had class. Do you have HTTP requests enabled?

I get http 404 errors all the time. It could just be roblox’s services or the server you’re requesting to might not be able to handle that many requests, so it throws an error

mm code in a quoteblock my favorite

put these ``` before and after your code or i will find you

1 Like

example

while true do 
wait(1)
print("amazinhgd")
end
1 Like

thank you this example was much needed and i dont know what OP wouldve done without your support

1 Like

OP isn’t smart enough to realise they’re using an outdated API, why do you think they’d be smart enough to make a game?

1 Like