I know you can use a local script in a screengui to make it so you hit a button and something happens, but is it possible to make it so something happens if you do something like this? a,a,b,b,c,c
✓ ANSWER ACCEPTED
Is it possible to..?
2 answers
✓ Accepted answer
in that case you want to set up a sort of "event" counter, that fires based off of what happens and what will happen.
local counter = 1
local sequence = {"a","b","q","c","d","g"}
for i,v in pairs(script.Parent:GetChildren()) do --idk if this is against the rules...
if v:IsA("TextButton") then
v.MouseButton1Down:connect(function()
if v.Text:lower() == sequence[counter] then
if counter < #sequence then
counter = counter + 1
else
print("Sequence complete")
end
else
counter = 1 -- they messed up, start over.
end
end)
end
end--the ideal is possible, yes. You can create a secret passcode entrance or whatever.
--however, this script is a rough form of what i would deem a possible solution.
this goes off the assumption that the text of the buttons are the same as the sequence table. but the same logic goes, as long as you have the right idea.
This is NOT a request site.
2 comments
0
I was asking a question on if it was possible.
0
That's still against the rules, this is a site to edit others' scripts.
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
Pressing the buttons in a sequence.
I was making the script in an easy fashion then read the second comment below, so i removed the majority of it. should i post it?
It doesn't matter.