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

What is Enum.Material."any material" for?

I'm still learning scripting, saw Enum.Material and what to know how and what it is used for

1 answer

If you want to change a part material with script you just write :

script.Parent.Material = Enum.Material."any material"

1 comment

0

Just going to add: Enum is a datatype used for many different things that you can not or should not change with using strings. Read more about it here: https://create.roblox.com/docs/scripting/luau/enums

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