I feel like a complete noob, butttt this is erroring and I can't fix it
error: BrickColor is not a valid member of camera
Idk camera????
script.Parent.TrackTerrain.Value = _G.Terrains[math.random(1,#_G.Terrains)]
TrackPieces = game.Workspace:GetChildren("TrackPiece")
if script.Parent.TrackTerrain.Value == "Desert" then
for DesertConvert = 1, #TrackPieces do
TrackPieces[DesertConvert].BrickColor = "Pastel brown"
TrackPieces[DesertConvert].Material = "Sand"
end
end

3 comments
I see, but now I am getting the error "BrickColor expected, got string instead"
Oh that's becaus eyou gotta write =BrickColor.new("Pastel brown") instead of just ="Pastel brown"
thx again bbe