Gamepass Team Errror

I don’t know what this error is.

error:

script:

local	v = script.Parent.TextLabel
local http = game:GetService("MarketplaceService")
local player = game.Players.LocalPlayer
local itemid = 6376336
if http:UserOwnsGamePassAsync(player, itemid) then
	print("owns item")
	--game.ReplicatedStorage.TeamChanger:FireServer(v.Text)
else
	print("don't own item")
	http:PromptGamePassPurchase(player, itemid)
end
end)

You have to use their userid I’m pretty sure

So instead of player, do

player.UserId
2 Likes

Ok! I will try that. I think the userid actually makes it work so im test

It works I tested it with gamepass I don’t own and own gave me correct scores.

image

image