For some reason, the user is not prompted to purchase the ID of the clothes I want them to buy. Nothing happens when the button is pressed. What is wrong?
I get an error that TS is not a part of script.Parent, but it is?
local buyButton = script.Parent.SHIRT local buyButton2 = script.Parent.TextButton local buyButton3 = script.Parent.TS player = game.Players.LocalPlayer buyButton.MouseButton1Click:connect(function() game:GetService("MarketplaceService"):PromptPurchase(player, 185788753) end) buyButton2.MouseButton1Click:connect(function() game:GetService("MarketplaceService"):PromptPurchase(player, 185788727) end) buyButton3.MouseButton1Click:connect(function() game:GetService("MarketplaceService"):PromptPurchase(player, 184263728) end)
Try using :WaitForChild() function, most ROBLOX clients are slow.