so basicly i am making a game for my friend and there is a merch shop were you buy merch, i am trying to use ProximityPrompt to buy a shirt here is the script
local button = script.Parent local cleanSweepId = 5142337374 button.ProximityPrompt.Triggered:Connect(function() Game:GetService("MarketplaceService"):PromptPurchase(player, cleanSweepId) end)
if anyone can help please do and it help me out alot, thanks :D
You use a LocalScript in StarterGui, so it is only Visible for One Player.
local Prox = workspace <-- Your Code from T-shirt (workspace.T-shirt.ProximityPromt) do local MS = game:GetService("MarketplaceService") do local cleanSweepId = 5142337374 Prox.Triggered:Connect(function() print("Buy T-shirt") MS:PromptPurchase(game.Players.LocalPlayer, cleanSweepId) end)
I think that should be working.