Hello devs! So I am trying to create function for my script, to check if all StringValues in folder aren’t empty, here’s my current code (or function) :
local function checkText()
for _,i in pairs(game:GetService("ReplicatedStorage").RadioMessages:GetChildren()) do
if i:IsA("StringValue") then
if i.Value == "" then
print(i.Value)
return false
end
end
end
return true
end
local function areStringValuesNotEmpty(folder)
for _, stringValue in ipairs(folder:GetChildren()) do
if stringValue:IsA"StringValue" then
if stringValue.Value == "" then
return false
end
end
end
return true
end