Run it
Copy the script and paste it into your executor.
-- 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)prox by ago馃懟馃懟馃懟

Universal