if dna:WaitForChild(SELECTED.."Owned").Value == true and dna:WaitForChild(SELECTED.."Equipped").Value == false then
RS:WaitForChild(SELECTED).Settings.Boost.Value = Select.Parent:WaitForChild("Max").Value
for _, v in pairs(dna:GetChildren()) do
dna:WaitForChild(SELECTED.."Equipped").Value = true
end
How do I make it so everything else that is true and has the word “Equipped” in it turn false?
This is a syntax error because namecalls cannot be by itself without calling it.
To OP:
What do you mean by has the word “Equipped” in it turned false? The property? The name?
And what do you mean by “everything else”?
If you mean if it has "Equipped" in the name, simply check if it has the term "Equppied" using string.find
for _, v in ipairs(dna:GetChildren()) do
if v.Name:find("Equipped") then
v.Value = false
end
end