I am making a GUI where you are able to fetch questions from a module and then return them into a text label with the needed answer after so how could I detect whatever I scan through has specific word to tell the script its the question variable than anything else?
local FAQs = game.ReplicatedStorage.FAQs
local Module = require(FAQs[script.Parent.Parent.Text])
local Menu = script.Parent.Parent.Parent.Parent
script.Parent.Activated:Connect(function()
local Sample = Menu.QuestionSample
Sample:Clone()
Sample.Visible = true
Sample.Name = Module.Name
for i,v in pairs(Module) do
end
end)
local Info = {
Name = "Jailbreak";
Q1 = "How to rob?";
Q2 = "Whats most expensive item?";
Q3 = "Where is the bank?";
A1 = "Go into a vault";
A2 = "Jet";
A3 = "The city";
}
return Info
Iād be nice if there was also a way for the script to find Q1 and then search for anything containing A with the same integer to save it as the answer