Attempting to assign an immutable property should trigger some sort of warning in script editor

I forgot UDim2 elements aren’t assignable. Would have been great to find that out prior to runtime.

script.Parent.Bars.HealthBar.Size.X.Offset = .5

Maybe the script editor could underline this code like it does with other errors.

Seems doable?

Assignment to Vector3 elements is probably another very common source of bugs, since those are mutable in most languages.

9 Likes