i wanted a script that could make every block corroded, for my core. here is what i TRIED:
game.Workspace.GetChildren.Material("Corroded Metal")
but GetChildren and Material were both not accepted. They are not correct commands. if you have the correct commands, or a whole new script, that would be great! thanks!

2 comments
it helped a little bit, but, i wanted to make it happen once the core temperature (game.Workspace.Temp.Current.Value) gets to a surtain temperature. for example: if game.Workspace.Temp.Current.Value > 1200 then [your code]
In that case: Line 9: if workspace.Temp.Current.Value > 1200 then ChangeMaterial(workspace) end