= += −= *= /=
Assignment. Compound forms emit the same operators.
Syntax
Section titled “Syntax”name = value;name += 1;Parameters
Section titled “Parameters”None.
Return value
Section titled “Return value”The assigned value (statement form).
Luau emit
Section titled “Luau emit”= += -= *= /=
Description
Section titled “Description”observable assignment writes .Value. There is no copy-assignment operator overload.
Example
Section titled “Example”coins += 10;name = player.Name;Emits:
coins += 10name = player.Name