I have this Local Script:
for i,v in pairs(player.PlayerGui.Quests.Background:GetChildren()) do
if v:FindFirstChild("Active") and not v.Active then
--Do some juicy stuff
elseif v:FindFirstChild("Active") and v.Active then
print("Still prints true -.-")
end
end
Active is a boolean value I have in almost every child in the folder I'm looping through.
What I want to do is for the script to "Do some juicy stuff" when that value is false (Which it is), but instead it keeps printing true even when the value is false.
I had the first value in the list checked and it was false, I ran the script and it still printed that it was true.
This is getting me so annoyed I'm already at this for 1 hour.
Any help is really appreciated!
Thanks!

1 comment
You need the value inside the Active ie v.Active.Value. v.Active is an instance and will be truthy.