i’m currently trying to make a button that checks if a player owns a game pass and if they do, then they can get bigger than the other players. my issue is that even though i own the game pass, i get a prompt still and an error. no idea what it means.
Code:
script.Parent.MouseButton1Click:Connect(function()
if MPS:UserOwnsGamePassAsync(plr.UserId, 678242521) then
mama:FireServer()
else
MPS:PromptGamePassPurchase(plr, 678242521)
end
end)
this is a local script which is inside of a textbutton
local MPS = game:GetService("MarketplaceService")
local mama = game:GetService("ReplicatedStorage"):WaitForChild("events").mama
local plrs = game:GetService("Players")
local plr = plrs.LocalPlayer
script.Parent.MouseButton1Click:Connect(function()
if MPS:UserOwnsGamePassAsync(plr.UserId, 678242521) then
mama:FireServer()
else
MPS:PromptGamePassPurchase(plr, 678242521)
end
end)