New.Buy.MouseButton1Click:Connect(function()
MarketPlaceService:PromptGamePassPurchase(Player, morph.Id)
end)
MarketPlaceService.PromptProductPurchaseFinished:Connect(function()
Remotes.Overhead:FireServer(Player)
Remotes.Morph:FireServer(morphName, morph, model)
if ProductInfo.Name == "Alice" then Remotes.Badge:FireServer(Player, 3464175487150410) end
end)
New.Buy.MouseButton1Click:Connect(function()
MarketPlaceService:PromptGamePassPurchase(Player, morph.Id)
end)
Is “morph.Id” an actual id for a gamepass?
And:
PrompProductPurchaseFinished is used for Developer Products only, not gamepasses.
I suggest:
or
MarketplaceService | Documentation - Roblox Creator Hub - though less secure.
You need to use PromptGamePassPurchaseFinished instead which will return 3 things. Look it up using this link