I am executing this in a place and I have no idea why it isn't working.
local t = game.Workspace.Terrain
for i, P in ipairs(game.Workspace:GetChildren()) do
if P.Transparency = 0 and P.Material = Enum.Material.Ice then
t:FillBlock(P.CFrame, P.Size, Enum.Material.Snow)
wait()
P:Destroy()
wait(1)
end
end
I get an error message saying that material is not a valid member of camera.
