script.Parent.ClickDetector.MouseClick:Connect(function() if(game.Workspace.Light_Stat_1.BrickColor == BrickColor.new("Lime green"))then print("hi2") local Lift1 = Instance.new("Part") Lift1.Parent = game.Workspace Lift1.Shape = "Cylinder" Lift1.Anchored = true Lift1.CanCollide = true Lift1.Size = Vector3.new(7.75, 12.06, 10.04) Lift1.Position = Vector3.new(-89.933, 3.925, 215.561) Lift1.Name = "Lift1" end end)
Your BrickColor isn't Lime green because I just tested with part and works for me:
if game.Workspace.Part.BrickColor == BrickColor.new("Fossil") then print("Test") end -- Prints Test