How to make all parts to some material

Hello developers!

I know this is really easy but, am lost.
Can anybody pls tell me some easy script that makes all parts called "Tile " in game and set their material.

I think you can make it by command line but.
Here is what i make but it donw work…

block = workspace:GetChildren("Tile")
block.Material = Enum.Material.Concrete

I tried also this:

block = workspace:GetDescendants("Tile")
block.Material = Enum.Material.Concrete

Please help.
Thanks bye!

for _,block in pairs(workspace:GetChildren()) do
      if block.Name == "Tile" then
block.Material = Enum.Material.Concrete
end
end
2 Likes

YAY it works thanks! it really helped i haved like 15000 part like that! (:

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.