Hello Developers! I’m trying to do an automated PM, then the answer can be any answer but it should match a word to be correct, I will now answer these questions.
What do you want to achieve? Keep it simple and clear!
I want do an automated PM, which allows any answer with the matching word.
What is the issue? Include screenshots / videos if possible!
Is not saying “Correct.”, and I have a error, but I don’t know if is from that script:
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
Of course! I looked for sulutions on the Dev Hub, I tried searching in topics.
I want to do an automated PM, the PM allows any type of answer while the answer has the matching word, the problem is when I click “Send” it doesn’t says “Correct.”, I want do the PM match the word and reply with Correct.
I hope you can help me.
Kindest regards,
Waum_a.
local InputText = script.Parent.Parent.Roundify.Texthere.TextBox
local Question = script.Parent.Parent.Decoration.Question
local match1 = string.match ("When not serving customers.", "customers")
script.Parent.MouseButton1Click:Connect(function()
if InputText.Text == match1 then
Question.Text = "Correct."
end
end)
local InputText = script.Parent.Parent.Roundify.Texthere.TextBox
local Question = script.Parent.Parent.Decoration.Question
local Customers = "Customers"
script.Parent.MouseButton1Click:Connect(function()
if InputText.Text == string.match("When not serving customers",Customers:lower()) then
Question.Text = "Correct."
end
end)
It only says Correct if you say “Customers” or “customers”, and nothing else like this: “customers”, Correct, “when im not serving customers”, doesn’t happens anything.
local InputText = script.Parent.Parent.Roundify.Texthere.TextBox
local Question = script.Parent.Parent.Decoration.Question
local Customers1 = "When not serving customers"
local Customers2 = "While serving customers"
script.Parent.MouseButton1Click:Connect(function()
if InputText.Text == Customers1:lower() or Customers2:lower() then
Question.Text = "Correct."
end
end)
This will always pass the condition since it checks if either InputText.Text is equal to Customers1:Lower() or if Customer2 is anything besides nil or false. Customer2 will never be nil or false, so it’ll always pass.