Hi, I have a question about Free Passes for devs. I know how to do it, but is it aloud?
I Have A Sample Code here:
local button1 = script.Parent
local Owner1 = "OverAcheiver647"
local Owner2 = "DevName1"
local function onButtonActivated()
if player.Name == Owner1 or player.Name == Owner2 then
--What the pass does [Solved]
else
--Gamepass Code [Unsolved]
end
end)
Button1.Activated:Connect(onButtonActivated)
By the way, just in case you want to add more owners:
local button1 = script.Parent
local Owners = {"OverAcheiver647","DevName1"}
local passId = 0 -- replace 0 with your pass id
local function onButtonActivated()
if table.find(Owners,player.Name) then
--What the pass does [Solved]
else -- since you said its unsolved
if game:GetService("GamePassService"):UserOwnsGamePassAsync(player.UserId,passId) then
-- stuff
end
end
end)
Button1.Activated:Connect(onButtonActivated)