Expecting identifier when parsing, got "="

I’m not sure what’s wrong with the script, but I seem to be getting this error.
image
How do I fix this?

you should use :SetAttribute() instead of =.

object:SetAttribute("Molecules", hit:GetAttribute("Molecules"))
6 Likes