pigaro
|
  |
| Joined: 06 Jun 2009 |
| Total Posts: 2796 |
|
|
| 01 Jul 2015 08:15 PM |
Using the following script to spawn a new brick,
function fire() local p = Instance.new("Part") p.Position = script.Parent.Position p.Size = Vector3.new(2,3,2) p.BrickColor = BrickColor.new(26) p.BottomSurface = 0 p.TopSurface = 0 p.Name = "astronaut" p.Parent = script.Parent end
while true do wait(3) fire() end
is it possible to add a mesh to the brick, and if so, add a texture? How might I go about doing this? |
|
|
| Report Abuse |
|
|
|
| 01 Jul 2015 08:20 PM |
| just create the mesh and parent it to the part |
|
|
| Report Abuse |
|
|
instawin
|
  |
| Joined: 04 Jun 2013 |
| Total Posts: 8777 |
|
|
| 01 Jul 2015 08:22 PM |
yes, you could
you would need to create a SpecialMesh and parent it to the brick
select the mesh type (Head, FileMesh, etc)
you would then need to provide an asset id for the MeshId and TextureId
local specialMesh = Instance.new("SpecialMesh", part)
local meshid = your id here local textureid = your id here
specialMesh.MeshType = Enum.MeshType.FileMesh specialMesh.MeshId = "rbxassetid://"..meshid specialMesh.TextureId = "rbxassetid://"..textureid |
|
|
| Report Abuse |
|
|
pigaro
|
  |
| Joined: 06 Jun 2009 |
| Total Posts: 2796 |
|
|
| 01 Jul 2015 08:22 PM |
| How might I go about creating a mesh? Sorry to ask |
|
|
| Report Abuse |
|
|
pigaro
|
  |
| Joined: 06 Jun 2009 |
| Total Posts: 2796 |
|
| |
|
instawin
|
  |
| Joined: 04 Jun 2013 |
| Total Posts: 8777 |
|
|
| 01 Jul 2015 08:23 PM |
by "creating" a mesh, do you mean making a custom one and uploading it to roblox? if so, that is no longer possible
you can choose mesh ids and the such from current hats and gears though |
|
|
| Report Abuse |
|
|
pigaro
|
  |
| Joined: 06 Jun 2009 |
| Total Posts: 2796 |
|
|
| 01 Jul 2015 08:30 PM |
| Well I guess I meant how do I create this special mesh with the id and mesh of a hat for example? Would I just have a script similar to the previously posted one, but replace the things needed to create a brick and replace them with one of the three groups you posted? |
|
|
| Report Abuse |
|
|