Okay, so I am making a tycoon, and I need the droppers to drop potatoes, which I have done. Now I just need the texture for it. Here's what I tried to use:
1 | mesh.TexureId = "rbxassetid://81684482" |
Here is the code for the dropper so far.
01 | wait( 2 ) |
02 | workspace:WaitForChild( "PartStorage" ) |
03 |
04 |
05 | deb = true |
06 | script.Parent.Clicker.ClickDetector.MouseClick:connect( function (wat) |
07 | if deb = = true then |
08 | deb = false |
09 | local part = Instance.new( "Part" ,workspace.PartStorage) |
10 | part.BrickColor = BrickColor.new ( "Gold" ) |
11 | part.Material = script.Parent.Parent.Parent.MaterialValue.Value |
12 | local mesh = Instance.new( "SpecialMesh" ) |
13 | mesh.Parent = part |
14 | mesh.MeshType = "FileMesh" |
15 | mesh.MeshId = "rbxassetid://81684482" |
A meshId can only be set in the property panel, so it is staying grey because the script is unable to change the texture unfortunately.
You should be able to use a special mesh and change the ID from a script, though:
http://wiki.roblox.com/index.php?title=API:Class/SpecialMesh
Hope that helps!
EDIT: Oh, just realised you are using a special mesh. Try the ID in a mesh normally, and if it is still grey, subtract 1 from the end and so on, until you get the right texture! Then you can use that ID!