Well, I'm trying to make a laser gate that opens and closes, and I keep getting this error trying to change the color. I don't know what I'm doing wrong, and I tried = brickcolor."" but it doesnt work either, just gives me an error. What do i do? did i do something wrong? the print works by the way.
game.Workspace.ButtonCO.OnServerEvent:Connect(function()
if game.Workspace.Lasers.Laserr.BrickColor == '255,84,84' then
print("yes")
game.Workspace.Lasers.Laserr.BrickColor = BrickColor "25,255,25"
game.Workspace.Lasers.Laserr.CanCollide = false
else
print("no")
game.Workspace.Lasers.Laserr.BrickColor = BrickColor "255,84,84"
game.Workspace.Lasers.Laserr.CanCollide = true
end
end)

1 comment
you're using strings