Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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")

1 comment

0

You mean: Enum.Material.CorrodedMetal?

1 answer

✓ Accepted answer

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.

2 comments

0

Yup, that's how Enums work.

0

ty!

This discussion is preserved as it was. New answers, comments, and votes are closed.