Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I can never change the Material or Colors I need help figuring out what to put down. help?

Asked by 4 years ago
Edited 4 years ago

Nothing that I type in works and I put down this and It didn't work and don't say that you need to put down local and that stuff because that doesn't work either. game.Workspace.Bar1.Material = Enum.Material("Corroded Metal") game.Workspace.bar2.Material = Enum.Material("Corroded Metal") game.Workspace.bar3.Material = Enum.Material("Corroded Metal") game.Workspace.bar4.Material = Enum.Material("Corroded Metal")

0
You mean: Enum.Material.CorrodedMetal? Ziffixture 6913 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

Right. When you do Enumerators (Enums), There is no function in that Enumerators because it is a library of properties. So instead of doing Enum.Material("Corroded Metal") do this:

game.Workspace.Bar1.Material = Enum.Material.CorrodedMetal --It's also only one word.
0
Yup, that's how Enums work. deeskaalstickman649 475 — 4y
0
ty! xwainflameskul 16 — 4y
Ad

Answer this question