generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: I need help with a command.

Previous Thread :: Next Thread 
SimplySanic is not online. SimplySanic
Joined: 18 Aug 2012
Total Posts: 1651
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 is not online. 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 is not online. Metology
Joined: 06 Oct 2014
Total Posts: 3255
27 Oct 2015 06:53 PM
Enum material.
Report Abuse
SimplySanic is not online. SimplySanic
Joined: 18 Aug 2012
Total Posts: 1651
27 Oct 2015 06:54 PM
How did you figure out those numbers?


"Old souls make great soldiers..."
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
27 Oct 2015 06:55 PM
Do this instead, it's better.

Blah.Material = Enum.Material.DiamondPlate
Report Abuse
SimplySanic is not online. SimplySanic
Joined: 18 Aug 2012
Total Posts: 1651
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
colinrules10 is not online. colinrules10
Joined: 04 May 2013
Total Posts: 878
27 Oct 2015 07:02 PM
wouldnt it be

Ball.Material = "DiamondPlate".
Report Abuse
Metology is not online. 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 is not online. 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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image