guys, this error showed in a gamepass thing help

Script: local gamepass = 10346312 local player = game.Players.LocalPlayer local service = game:GetService("MarketplaceService")

script.Parent.MouseButton1Click:Connect(function() service:PromptGamePassPurchase(player, gamepass) end)

3 comments

0

i think it's because u used an imagelabel instead of an image button

0

or u accidentally put the script in an image label, put it in the textbutton

0

Hot_spi, it rlly helped. thank you