game pass id( /game-pass/configure?id=(5337475) yes i only took the numbers
it says GamePassId '5337475' is not of type Game Pass. Please use MarketplaceService:PlayerOwnsAsset instead.
local GamePassService = game:GetService('GamePassService')
local InsertService = game:GetService('InsertService')
local GamePassIdObject = script.GamePassId
local plr=script.Parent.Parent.Parent
if GamePassService:PlayerHasPass(plr, GamePassIdObject.Value) then
end

1 comment
https://developer.roblox.com/api-reference/function/GamePassService/PlayerHasPass