-- ServerScriptService/GamepassHandler.lua local MarketplaceService = game:GetService("MarketplaceService") local Players = game:GetService("Players") local GAMEPASS_ID = 12345678 -- seu Gamepass ID Players.PlayerAdded:Connect(function(player) local success, owns = pcall(MarketplaceService.UserOwnsGamePassAsync, MarketplaceService, player.UserId, GAMEPASS_ID) if success and owns then -- Dar item ou habilitar feature print(player.Name .. " possui o gamepass.") -- exemplo: setar atributo player:SetAttribute("HasSpecialPass", true) end end)