Hello, I was just practicing scripting since I’m a bit new, my issue is that when I use concaedation for a brickcolor I get an error:
https://gyazo.com/a7cd1aac26b1e4e52d6fdce2d6295227
Heres my script:
function makePart(Size,Position,Shape,Material,Color)
local brick = Instance.new("Part")
local strings = brick.BrickColor
brick.Size = Size
brick.Position = Position
brick.Shape = Shape
brick.Anchored = true
brick.Material = Material
brick.BrickColor = Color
brick.Parent = game.Workspace
if brick.BrickColor == BrickColor.new("Bright green") then
print("Brick is" ..strings "the brick is being deleted")
wait(2)
brick.Transparency = 1
elseif
brick.BrickColor == BrickColor.new("Bright blue") then
print(strings "is the color, the brick isn't deleted")
end
end
print("Making First Part")
wait(1)
makePart(Vector3.new(222, 100, 222), Vector3.new(0, 50, 0),Enum.PartType.Cylinder,Enum.Material.Neon,BrickColor.new("Bright blue"))
print("Making Second Part")
wait(1)
makePart(Vector3.new(222, 100, 222), Vector3.new(0, 150, 0),Enum.PartType.Block,Enum.Material.Grass,BrickColor.new("Bright green"))
I haven’t found any fixes about this on the devforum.