I'm asking cause I don't know how to script vary well. But here's what I got.
local gamepassID = 8852294
script.Parent.MouseButton1Click:connect(function (playerWhoClicked)
local player = game.Players.LocalPlayer
local gps = game:GetService("GamePassService")
local playerHasPass = gps:PlayerHasPass(player, gamepassID)
if playerHasPass then
player.Team.Name = Site Adminastrator
else
gps:PromptPurchase(player, gamepassID)
end
end)

1 comment
Have you tested the script out and got an error?