|
| 27 Oct 2015 06:48 PM |
I'm trying to change a material by scripting, but I don't know how to write it to refer to material on a part. I do game.Workspace.Ball.Material = Material.DiamondPlate() but it doesn't work.
"Old souls make great soldiers..." |
|
|
| Report Abuse |
|
|
Metology
|
  |
| Joined: 06 Oct 2014 |
| Total Posts: 3255 |
|
|
| 27 Oct 2015 06:53 PM |
Do this local game.Workspace.Ball.Material = 1056 |
|
|
| Report Abuse |
|
|
Metology
|
  |
| Joined: 06 Oct 2014 |
| Total Posts: 3255 |
|
| |
|
|
| 27 Oct 2015 06:54 PM |
How did you figure out those numbers?
"Old souls make great soldiers..." |
|
|
| Report Abuse |
|
|
|
| 27 Oct 2015 06:55 PM |
Do this instead, it's better.
Blah.Material = Enum.Material.DiamondPlate |
|
|
| Report Abuse |
|
|
|
| 27 Oct 2015 06:58 PM |
@Jarod
When I do that the "Ball" doesn't work and it says it's not a valid member of workspace.
"Old souls make great soldiers..." |
|
|
| Report Abuse |
|
|
|
| 27 Oct 2015 07:02 PM |
wouldnt it be
Ball.Material = "DiamondPlate". |
|
|
| Report Abuse |
|
|
Metology
|
  |
| Joined: 06 Oct 2014 |
| Total Posts: 3255 |
|
|
| 27 Oct 2015 07:05 PM |
| @SimplySanic http://wiki(.)roblox.com/index.php?title=API:Enum/Material |
|
|
| Report Abuse |
|
|
Dogejia
|
  |
| Joined: 08 Feb 2012 |
| Total Posts: 1873 |
|
|
| 27 Oct 2015 07:06 PM |
@meto
Bruh, remove dat dot, roblox is ok if we have links on this forum (wiki links)
Online Dogeing since 1337 |
|
|
| Report Abuse |
|
|
Metology
|
  |
| Joined: 06 Oct 2014 |
| Total Posts: 3255 |
|
|
| 27 Oct 2015 07:40 PM |
| I did, and it said Im breaking the rules. |
|
|
| Report Abuse |
|
|