I'm still learning scripting, saw Enum.Material and what to know how and what it is used for
If you want to change a part material with script you just write :
script.Parent.Material = Enum.Material."any material"