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
Hello, tylergoatboy!
I made some changes on your script and now it works
local GamePassService = game:GetService('MarketPlaceService') -- "GamePassService" is deprecated, and is not working, use MarketPlaceService local InsertService = game:GetService('InsertService') local GamePassIdObject = script.GamePassId local plr=script.Parent.Parent.Parent if GamePassService:UserOwnsGamePassAsync(plr.UserId, GamePassIdObject.Value) then end
Good Luck with your games
I think the error is that you chose a configure id...