hello everyone. im making a buying clothing system, but i want to connect it to a number value. my script is not working and i would appreciate any help on why! <33
local player = game.Players.LocalPlayer
local value = workspace.ShirtId.Value
script.Parent.MouseButton1Click:Connect(function()
game:GetService("MarketplaceService"):PromptPurchase(player, value)
end)