So I don't know if this is correct but I made this so that once it is ran, it finds Plane in the workspace and it is supposed to take all of the parts named Brick in the model but I think it either only applies BlockMesh to one part rather than all of them. How could I get it to be applied to all the parts in the model that are named Brick?
local mesh = Instance.new("BlockMesh", game.Workspace.Plane.Brick) print("Mesh Applied")
for _, v in pairs(game.Workspace.Plane:GetChildren()) do if v.Name == "Brick" then local mesh = Instance.new("BlockMesh", v) print("Mesh Applied") end end
What this does is that if it finds the part named "Brick" in your plane, it will apply the BlockMesh to every part named "Brick".
Try this
for _,v in pairs(game.Workspace.Plane:GetChildren()) do if v.Name == "Brick" then local mesh = Instance.new("BlockMesh",v) print("Mesh Applied") end end
edit: Accidently forgot to change something in this.