I'm learning to script and trying my best but I've never done this before. How can I make it so when the player clicks the Gui Button inside of a shop, it prompts the shirt so they can buy it?
local itemID = 5088846045
local player = game.Players:FindFirstChild("Humanoid")
script.Parent.MouseButton1Click:Connect(function()
game:GetService("MarketplaceService"):PromptPurchase(player, itemID)
end)

2 comments
Oh I see! Thanks a lot!!!
No problem!