
As you can see, it returns an Instance instead of Player, which I think does not make sense.
2 Likes
i cant see anything can you show the whole script please?
If you wanted to:
Make a player buy a gamepass when a button clicked:
-- Reference to the button
local button = script.Parent
local player = game.Players.LocalPlayer
local gamePassID = nil
local MarketplaceService = game:GetService("MarketplaceService")
button.MouseButton1Click:Connect(function()
MarketplaceService:PromptGamePassPurchase(player, gamePassID)
end)
I’m not asking for help here.
This is a bug report.
3 Likes
Thanks for the report - after careful evaluation, we’ve opted not to prioritize a fix for this issue due to this being a breaking type change for millions of creators. We would greatly appreciate your understanding here ![]()
1 Like