This is my following GUI structure:
In my script, I'm referencing Bar and Minimized, as, respectively:
local container = script.Parent.Bar
<- Loop script
local bValue = script.Parent.Parent.Parent.Parent.Minimized
<- Script inside of ImageButton
What am I doing wrong?
You did one to many Parents in bValue... The syntax is correct, but the actual validation is incorrect cause you have one to many Parents so now they're looking in StarterGui for something that doesn't exist.