basically im making a red light green light type game and I want the part to kill you when it is red but I dont know how to check the parts brick color, I want it to be like if part is this color then but I dont know how to check if it is that color.
Try to use a local variable like this
local part = script.parent.brickcolor
print(Part)
if part.brickcolor = "Green" then:connect(function()
idk if the function bit works but the rest does
Try checking the brick color as in your setting a brick color in code
if part.BrickColor == BrickColor.new('Black') then print('its black!') end
I think you should use this simple method to know if it is red or green.
if part.BrickColor == BrickColor.new('Lime green') then print('Its green!') end
Try this
local part = game.Workspace:FindFirstChild("Part") if part then print(part.BrickColor) end