Make a part of a gui appear when the player owns a game pass

Oh i see im going to test the script now if thats okay?

[quote=“Maastrophy, post:15, topic:956658”]

local getOwnershipSuccess, ownership = pcall(function()
    return marketplaceService:UserOwnsGamePassAsync(player.UserId, gamePass)
end)

if getOwnershipSuccess and ownership then
    script.Parent.Visible = true
end

the problem in your code is here, it should be this

local success,errormessage = pcall(function()
     maketplaceService:UserOwnsGamePassAsync(player.UserId, gamePass)
end)
if success then
     script.Parent.Visible = true
end

I though you did?

It would be easier to just go to the gui to uncheck reset on spawn

Thanks for the help but ive found the solution!

Hi thanks for the help but i found the solution!

Looks like it worked, thank you so much! Is it okay if i use that script?

Can i ask what the solution is, im also struggling with similar problem