local Button = script.Parent
local GamepassID = 238877481
local Player = game.Players.LocalPlayer
local plr = game.Players.LocalPlayer
if Button.MouseButton1Click and game:GetService("MarketplaceService"):UserOwnsGamePassAsync(Player, GamepassID) then
    print("Player owns gamepass.")

    plr.Team = team["Vip Inmate"]
end

What does that LUA script do?