|
| 21 Aug 2015 10:52 PM |
So I was wondering if there was a way to take a mesh and put it in ALOT of bricks. Because I have over 3000 bricks that I need to put the mesh in. ( I used a plugin to make the bricks, so I couldn't just put it in the first one. Its for the Terrain ). If anyone could give me a script, or something to run though the cmd line thing, that would be great. ( I am a really bad scripter. Hehe ).
Thanks! |
|
|
| Report Abuse |
|
|
Wowgnomes
|
  |
| Joined: 27 Sep 2009 |
| Total Posts: 26255 |
|
|
| 21 Aug 2015 10:54 PM |
| Get children, then insert.new("special mesh" yaaaa |
|
|
| Report Abuse |
|
|
|
| 21 Aug 2015 10:55 PM |
| are all of the bricks grouped? |
|
|
| Report Abuse |
|
|
|
| 21 Aug 2015 10:56 PM |
| Yes, all the bricks are grouped. And they have the same name. |
|
|
| Report Abuse |
|
|
|
| 21 Aug 2015 10:57 PM |
| I don't know how to script, so if you could please give me a script that could do it, I would be really happy. :) |
|
|
| Report Abuse |
|
|
|
| 21 Aug 2015 10:57 PM |
do what wowgnomes said then if you dont know how try looking up stuff on the wiki (thats what I always do) or I can just make it for you :/ |
|
|
| Report Abuse |
|
|
|
| 21 Aug 2015 10:59 PM |
| ok I can do it but what is the mesh, like a special mesh or..? |
|
|
| Report Abuse |
|
|
|
| 21 Aug 2015 11:00 PM |
| hang on my computers auto shutdowning brb |
|
|
| Report Abuse |
|
|
|
| 21 Aug 2015 11:03 PM |
I think I can try. I'll tell you if If I did it or if I failed.
|
|
|
| Report Abuse |
|
|
Wowgnomes
|
  |
| Joined: 27 Sep 2009 |
| Total Posts: 26255 |
|
|
| 21 Aug 2015 11:03 PM |
| If you fail post what you did script and I'll help you along |
|
|
| Report Abuse |
|
|
|
| 21 Aug 2015 11:09 PM |
| Yep failed. What do I do after here? Workspace.Triangles:GetChildren() |
|
|
| Report Abuse |
|
|
|
| 21 Aug 2015 11:10 PM |
local partsToMesh = game.Workspace.MeshParts:GetChildren() -- change MeshParts to wherever the parts you want to mesh is. print("Meshing parts..") for i, v in pairs(partsToMesh) do if v:IsA("Part") then local mesh = Instance.new("SpecialMesh", v) mesh.Name = "PartMesh" mesh.MeshId = "rbxassetid://" mesh.TextureId = "rbxassetid://" end end print("Parts meshed!")
potato |
|
|
| Report Abuse |
|
|
Wowgnomes
|
  |
| Joined: 27 Sep 2009 |
| Total Posts: 26255 |
|
|
| 21 Aug 2015 11:13 PM |
p = game.Workspace.Triangles:GetChildren()
for i = 1,#p do
p[i]:####() insert new junk here
end
|
|
|
| Report Abuse |
|
|
|
| 21 Aug 2015 11:16 PM |
try this:
local triangles = workspace.Triangles:GetChildren() local mesh = Instance.new("SpecialMesh") mesh.MeshType = ("INSERT MESH TYPE HERE OR USE MESH ID AND DELTE THIS LINE") mesh.MeshId = ("INSERT MESH ID HERE OR USE MESH TYPE AND DELETE THIS LINE") mesh.Parent = triangles
I'm not the best scripter, but this might work :/ |
|
|
| Report Abuse |
|
|
|
| 21 Aug 2015 11:16 PM |
oh other people posted before me :( i cri evri tiem |
|
|
| Report Abuse |
|
|
Wowgnomes
|
  |
| Joined: 27 Sep 2009 |
| Total Posts: 26255 |
|
|
| 21 Aug 2015 11:19 PM |
We still love you and your big head :)
Thanks for giving us another unique way to script it |
|
|
| Report Abuse |
|
|
| |
|
|
| 21 Aug 2015 11:21 PM |
That made them invinsible... So more help? The mesh I want copied stuff
No mesh ID or Texture Offset 0,0,0 Scale 0,1,1 VertexColor 1,1,1 Meshtype: Wedge
Brick that I am trying to put a mesh in is a Wedge
( Basicly this makes the bricks very, very thin. It improves the looks of the place and helps remove stupid things like over sized. [ Because of plugin ] ) |
|
|
| Report Abuse |
|
|
|
| 21 Aug 2015 11:27 PM |
And I deleted all of the bricks without copying them. QQ I'll remake all of the bricks I guess... :( |
|
|
| Report Abuse |
|
|
| |
|
|
| 22 Aug 2015 11:25 AM |
| couldnt you just press undo |
|
|
| Report Abuse |
|
|
Wowgnomes
|
  |
| Joined: 27 Sep 2009 |
| Total Posts: 26255 |
|
|
| 22 Aug 2015 11:31 AM |
^^
and seriously none of our scripts worked lol?
Ik mine won't cause it's barebones but |
|
|
| Report Abuse |
|
|
| |
|