hello, I have this script and it should print the material of the terrain and the color of the terrain, but it prints this
and the terrain looks like this
code
local parts = {}
local RunService = game:GetService("RunService")
local Model = game.Workspace.Model
for i,v in pairs(Model:GetChildren()) do
v.Touched:connect(function(part)
parts[i] = part
end)
end
RunService.Heartbeat:Connect(function()
for i,v in pairs(Model:GetChildren()) do
if parts[i]:IsA("Terrain") then
print(parts[i].Color)
print(parts[i].Material)
end
end
end)
end
end
end)
It seems to me that the code is just fine, the top section on the output with all the numbers is probably the color code. And the terrain is a part of an enumeration, It is saying a material even though it may not look like what you want it to print
Terrain doesn’t have a Material or Color. It won’t error because Terrain is derived from BasePart, but the individual terrain cells don’t contain this data. So, as you’ve pointed out, they all say Plastic and a grey color, both sand and grass and water.