Well, my problem is that a frame is not visible when they are true, nor invisible when it is false. I would also like to know how I can put something like this: ValueOne or ValueTwo:GetPropertyChangeSignal("Value"):Connect(function()
local acepeto = script.Parent.Parent:WaitForChild("Aceptar")
local ValueAceptEdad = script.Parent:WaitForChild("AceptarEdad")
local ValueAceptTerma = script.Parent:WaitForChild("AceptarTerminos")
ValueAceptEdad:GetPropertyChangedSignal("Value"):Connect(function()
if ValueAceptEdad == true and ValueAceptTerma == true then
acepeto.Visible = true
elseif ValueAceptEdad == false or ValueAceptTerma == false then
acepeto.Visible = false
end
end)
if ValueAceptEdad.Value == true and ValueAceptTerma.Value == true then
acepeto.Visible = true
elseif ValueAceptEdad.Value == false or ValueAceptTerma.Value == false then
acepeto.Visible = false
end
For your second question, you need to create a variable for the function.
local acepeto = script.Parent.Parent:WaitForChild("Aceptar")
local ValueAceptEdad = script.Parent:WaitForChild("AceptarEdad")
local ValueAceptTerma = script.Parent:WaitForChild("AceptarTerminos")
local ActivateFunction = function() -- The important part for your second question.
acepeto.Visible = ValueAceptEdad.value and ValueAceptTerma.Value -- I cheated a little and simplified your code here.
end
ValueAceptEdad.Changed:Connect(ActivateFunction) -- With BoolValues, Changed is all you need.
ValueAceptTerma.Changed:Connect(ActivateFunction)