Hello! I was just going through this method of a multiple choice GUI, but whenever a Textbutton is selected, it does not sense that the value has changed at all.
Example:
-- This First Part Has No Problem
script.Parent.Parent.Button1.MouseButton1Click:connect(function()
local line = "Checking..."
for i = 1, #text do
script.Parent.Parent.Title.Text = string.sub(text, 1, i)
wait()
spawn(OnROWChanged)
end)
--- This Script Is The Problem
function OnROWChanged()
if IfQuestionIsCorrectOrIncorrect.Value == true then
local line = "Correct!"
for i = 1, #text do
script.Parent.Parent.Title.Text = string.sub(text, 1, i)
wait()
elseif IfQuestionIsCorrectOrIncorrect.Value == false then
local line = "Incorrect!"
for i = 1, #text do
script.Parent.Parent.Title.Text = string.sub(text, 1, i)
wait()
end
end
script.Parent.IfQuestionIsCorrectOrIncorrect.Changed:connect(OnROWChanged)
If you look at the value itself, the field is also set to the correct value, but this script does not seem to pick it up and as I put values as "false" or "true", they always sense as "false" as that is there default value. I am trying to make sure that the values sense correctly when it has bee changed.
Thanks!

1 comment
Lines 06, 21 and 28 are supposed to say: "script.Parent.Parent.Title.Text = string.sub(line, 1, i)"