i was reading and testing the wiki when i got to using Material property with scripts i did what it said and it does not change the material of my object this is what i have
1 | workspace.boron.BrickColor = BrickColor.new( "Bright blue" ) |
2 | workspace.boron.Material = 6 |
the value "6" in the wiki is foil when i tried it and clicked the play button my object stayed plastic how do i make it work?Thanks.
for properties that are "dropdown lists" you use Enum
1 | workspace.boron.BrickColor = BrickColor.new( "Bright blue" ) |
2 | workspace.boron.Material = Enum.Material.Foil |
Do this:
1 | game.Workspace.boron.Material = "Foil" |