This script will not prompt the player, although if i run the server script in the command bar it works
Server Script
rep.prompt.OnServerEvent:Connect(function(player) local MarketplaceService = game:GetService("MarketplaceService") local ProductId = 506263839 MarketplaceService:PromptProductPurchase(player, ProductId) end)
Local Script
script.Parent.MouseButton1Click:Connect(function() local id = script.Parent.Parent.theuid game.ReplicatedStorage.Request:FireServer(id.Text) end)