I am trying to take brick (a) and touch it to brick (b) and brick (b) take the color of brick (a) when they touch.
1 | local parts = workspace:FindPartsInRegion 3 (FillArea) |
2 | for _, part in pairs (parts) do |
3 | if part.Parent.Name = = "NotUsedBlock" then |
4 | model:GetChildren( "Build" ) do |
5 | model.Build.BrickColor.new = part.BrickColor |
6 | end |
1 | local parts = workspace:FindPartsInRegion 3 (FillArea) |
2 | for _, part in pairs (parts) do |
3 | if part.Parent.Name = = "NotUsedBlock" then |
4 | part.Touched:Connect( function (otherPart) |
5 | otherPart.BrickColor = part.BrickColor |
6 | end ) |
7 | end |
8 | end |