The script it suppose to play a sound if bought but its not working, I don't know why
ID = script.Parent.Text local MarketplaceService = game:GetService("MarketplaceService") local buyButton = script.Parent local productId = 426543916 local player = game.Players.LocalPlayer buyButton.MouseButton1Click:connect(function() MarketplaceService:PromptProductPurchase(player, productId) for i, player in ipairs(game.Players:GetChildren()) do game.Workspace.Sound = ID end end)