When I try to use this script it says I don't own the game pass, witch i do so I don't know what the problem is
if game.MarketplaceService:UserOwnsGamePassAsync(game.Players.LocalPlayer,1669132) then print("Player has gamepass") else print("player dont got it :(") end
Reasons it was not working
You were not getting the users ID, instead, you were getting there name. This is how you should use :UserOwnsGamePassAsync()
:UserOwnsGamePassAsync(UserID,GamePassID)
Also, I recommend using :GetService()
when fetching market place.
game:GetService("MarketplaceService")
The fix
if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(game.Players.LocalPlayer.userId,1669132) then print("Player has gamepass") else print("player dont got it :(") end