AntiFiter
|
  |
| Joined: 14 May 2009 |
| Total Posts: 12290 |
|
|
| 20 Feb 2015 02:49 PM |
If I try to do something like:
ServerStorage[script.Parent.Material]:Clone() -- So literally like "Wood"
It won't work, saying it's userdata. |
|
|
| Report Abuse |
|
|
SLY3
|
  |
| Joined: 10 Jul 2008 |
| Total Posts: 1700 |
|
|
| 20 Feb 2015 03:04 PM |
That's because the "Material" property isn't a string. It shows as:
'Enum.Material.Plastic' |
|
|
| Report Abuse |
|
|
SLY3
|
  |
| Joined: 10 Jul 2008 |
| Total Posts: 1700 |
|
|
| 20 Feb 2015 03:06 PM |
"print(workspace.SpawnLocation.Material.Name)"
That'll get the name of the returned Enum value. |
|
|
| Report Abuse |
|
|