Help with PromptPremiumPurchaseFinished

Okay before you start dropping your Roblox Creator Hub thing i read that 10 times.
i did this code VVV

game.MarketplaceService.PromptPremiumPurchaseFinished:Connect(function(Plr,Purchase,what)
	print(Plr,Purchase,what)
end)

but for some reason when i purchase premium it outputs

nil nil nil

i have no idea why.

I would be using PlayerMembershipChanged instead, because .PromptPremiumPurchaseFinished returns nothing. You can tell it returns nothing, because on the documentation, there are no parameters.

Code:

local Players = game:GetService("Players")

Players.PlayerMembershipChanged:Connect(function(player)
	if player.MembershipType == Enum.MembershipType.Premium then
		print("Premium user")
	end
end)

damn sorry for long response
yeah ill check that in a second

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.