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

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

Asked by 2 years ago

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

1 answer

Log in to vote
2
Answered by 2 years ago

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

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

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 xXMadonXx 190 — 2y
Ad

Answer this question