Hello there, I want to make a game where if someone has a VIP game pass it then will run a script, I've tried this before
local marketPlaceService = game:GetService("MarketplaceService") local player = game.Players.LocalPlayer local gamePassId = --// I am not acctually going to put my gamepass id here) if marketPlaceService:UserOwnsGamePassAsync(player, gamePassId) then print("USER OWNS GAMEPASS") else print("USER DOESN'T OWN GAMEPASS") end
It doesn't work (I PUT MY GAMEPASSID THERE BTW NOT SENDING IT THO)
The marketPlaceService:UserOwnsGamePassAsync
function requires the user ID of the player to check for, not the player instance.