I am making it so when the part it touched it changes colours, then after a few seconds it changed colours again. I want to make it so if the part is touched during the task.wait, it wont change colour, but if it is it will
local part = workspace.touchPart
part.Touched:Connect(function(hit)
print("part touched")
print(hit)
part.BrickColor = BrickColor.new("Bright green")
task.wait(2)
part.BrickColor = BrickColor.new("Bright red")
end)