Getting the Enum value

Simple question: How do you get the actual value from an Enum?

For example, you try to get the humanoid’s FloorMaterial, and you get this:


However, how do I extract the important string “Plastic” out of that Enum?

--How do I get the string "Plastic" from that Enum?

If you have any suggestions or solutions, you can comment them down. Thank you.

you can print .Name with enums

print(script.Parent.Material.Name) --would print the parts material name

You mean:

-- "Plastic"

Can you be more specific?

1 Like


Enum.Material.Name --that wouldn't work i just found out

can you give more context? (me being stupid)

oh wait
my bad
i believe you can just do

print(humanoid.FloorMaterial.Name) --just tested it, it works