NOTE: I KNOW HOW TO GET THE PARENTS, ALL PARENTS ARE RIGHT AND THE MATERIAL OF SCREEN IS FOIL!! HELP PLEASE!
--//Variables
Button = script.Parent
Screen = script.Parent.Parent.Screen
--//Function
Button.ClickDetector.MouseClick:connect(function()
for i,v in pairs {Screen} do
if v.Material == "Foil" then
print"Worked2"
v.Material = "Neon"
end
end
end)

7 comments
You forgot Screen:GetChildren()?
is there a click detector in the brick?
Yes, there is ducky.
When I tried it how you made it, I got an error: Material is not a valid member of model (I was using a model to store the children). Is this meant to have a :GetChildren() table? Or are you just trying to find the object called 'screen' in Workspace?
I know how to get the parents, it's just the material is not chnaging..
Are you doing a table, though? or is it just one part, cause if it's one part, then you don't need a for loop.
I can't answer this, I have tested multiple times in studio, and there is no new way of indexing materials. Sorry