Hi all! The function below works fine when name has string value and name2 doesn't. But as soon as I give string values to both, it makes everything visible, rather than just the two that are stated. The problem is the line right here:if v.Name == name or name2 then ....The function works fine singularly. Any help is greatly appreciated!
function DisplayText(name, name2)
for i,v in pairs(TextStore:GetChildren()) do
if v.Name == name or name2 then
v.Visible = true
else
v.Visible = false
end
end
end

1 comment
Thank you!