This script used to work about a month or two ago but it just stopped can someone help?
--------------------------------------------------------
local url1 = "https://discord.osyr.is/api/webhooks/563752528588570664/yq1siDOtrvRZ5oLX8ng75ckod_S501erPBqMhIHhvYOyHhlTAzEEvbRme-y8vTksybB9"
local http = game:GetService('HttpService')
wait()
local setting = game.ReplicatedStorage.settings
local rep = game.ReplicatedStorage
local request = rep.Request
local sound = game.Workspace.Sound
------------------------------------------------------
local que = {}
local request = {}
local MarketplaceService = game:GetService("MarketplaceService")
local function processReceipt(receiptInfo)
-- Find the player who made the purchase in the server
local player = game:GetService("Players"):GetPlayerByUserId(receiptInfo.PlayerId)
if not player then
-- The player probably left the game
-- If they come back, the callback will be called again
return Enum.ProductPurchaseDecision.NotProcessedYet
end
-- Output what product they bought
table.insert(que,player.ID.Value)
table.insert(request,player.Name)
local data1 = {
['username'] = "[Request]: " .. player.Name,
['content'] = "```" .. game:GetService("MarketplaceService"):GetProductInfo(player.ID.Value).Name .. "``` " .. "```" .. player.ID.Value .. "``` "
}
local newdata1 = http:JSONEncode(data1)
http:PostAsync(url1,newdata1)
print(player.ID.Value)
-- IMPORTANT: Tell Roblox that the game successfully handled the purchase
return Enum.ProductPurchaseDecision.PurchaseGranted
end
-- Set the callback (this can only be done once by one script on the server!)
MarketplaceService.ProcessReceipt = processReceipt
------------------------------------------------------------
--------------------------------------------------------------
rep.freerequest.OnServerEvent:Connect(function(plr,theid)
if plr.UserId == 276280154 then
table.insert(que,theid)
table.insert(request,plr.Name)
end
end)
--------------------------------------------------------------
rep.changeid.OnServerEvent:Connect(function(plr,id)
plr.ID.Value = id
print("changed")
end)
sound:Play()
------------------------------------------------------
local orig = {"2559753891","2255192665","2306993403","2637061447","2490453354","1454728992","516959540"}
while wait(5) do
if sound.IsPlaying == false or sound.IsPaused == true then
if que[1] == nil then
local random = orig[math.random(1,#orig)]
sound.SoundId = "rbxassetid://" .. random
game.ReplicatedStorage.settings.id.Value = random
sound.TimePosition = 0
sound:Play()
workspace.board.SurfaceGui.Frame.requsted.Text = ""
elseif que ~= nil then
sound.SoundId = "rbxassetid://" .. que[1]
sound.TimePosition = 0
game.ReplicatedStorage.settings.id.Value = que[1]
workspace.board.SurfaceGui.Frame.requsted.Text = "Requested By: " .. request[1]
wait()
sound:Play()
table.remove(que,1)
table.remove(request,1)
end
end
end

7 comments
i did delete the discord server for tat but it doesent run anyting wit it
i updated the discord link and it still doesent work
try https://discordapp.com/api/webhooks/563752528588570664/yq1siDOtrvRZ5oLX8ng75ckod_S501erPBqMhIHhvYOyHhlTAzEEvbRme-y8vTksybB9
like isntead of osyr.is do .com
ill try
i dont believe tis is te issue tho
te loop isent working