Basically, in this script I'm creating, it detects the part's name, and then inserts a texture onto the part, according to the name. I'm wondering if what I've written so far is correct.
while true do
function determineMaterial()
if Part.Name == "MetalWall001"
then
local metal001 = Instance.new.Texture
metal001.Texture = "http://www.roblox.com/asset/?id=190629879"
metal001.Face = "Left"
metal001.Face = "Right"
metal001.Face = "Back"
metal001.Face = "Front"
local metal001a = instance.new.Texture
metal001a.Texture = "http://www.roblox.com/asset/?id=190629867"
metal001a.Face = "Top"
end
end
end

3 comments
I'd appreciate some code, but alright. I'll try to fix this.
By the way, subtracting 1 from the ID doesn't always get you the ROBLOX Image asset. You occasionally have to subtract more, so you should always check on the website first..
Thanks for that.