Question, Is It Wrong To Give Me And My Devs Free Access To My Game's GamePasses/How Do I Code In Gampasses?

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)

All answers help. :+1: :+1:

  • It is aloud
  • It isn’t
  • I don’t know

0 voters

This code could be easily exploited but it is allowed ( i think ).

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)

edit: Fixed script

1 Like

Wow, cool @LuaBaseScript. :+1: :+1:

But again, @LuaBaseScript is it aloud? :thinking: :thinking:

How would this make it even easier to exploit?

Correction. How easy something like this would be to exploit is the same in all ways.

Could you please explain? I do not quite understand your wording.

This is handled in a local script meaning it is easy to bypass thi s Owner only check.

As far as i can see, @OverAcheiver647 has not stated that this was run in a local script.

It is because this connects an event when a button is pressed.