--I'm trying to create a script that will allow me to recolor a lot of parts, meshes, and unions within a model. I'm very amateur at scripting and could anyone help me fix this script?
Here's my code. Chest is the name of the model.
if game.Workspace.Chest.Child.BrickColor = ('Dark stone grey') then BrickColor = ('Hot pink')
Output says Workspace.Script:1: 'then' expected near '='
Would appreciate any help.

2 comments
pls use code block
= is an assignment operator. == is the comparison logic operator. The error is explaining it expected then aftern the logic but got an assignment operator.