So I want to add a secret message that prints in the output as an easter egg. I have so far used a linear searching function, but I am not sure how to implement pressing the F9 key into this function.
So far I have used:
local inputservice = game:GetService('UserInputService')
local keyspushed = inputservice:GetKeysPressed()
local function tableContains(tbl, element)
for _, v in ipairs(element) do
if (rawequal(v, element)) then
return true;
end
end
return false;
end
Where do I put my variables? Thanks.

1 comment
I'll try this. Thanks!