I mean the object, ObjectValue, and I cannot add to it, for instance I can initialize it but not use it:
objectVal = workspace.ObjectValue objectVal.Value = workspace.part
but here, when I try to use it:
thingName = objectVal.Value.Name print(thingName)
Output:
nil
How would I do objectVal.Value.Name without returning nil?
Properties are case-sensitive. edit: parts, models, and any instance are case sensitive too
workspace.ObjectValue.value = workspace.Part
would not work because value isnt a property, but may be a part.
workspace.ObjectValue.Value = workspace.Part
would work because Value is a property, while value isnt. (uppercase and lowercase matters.) Hope that helped! edit: workspace.part is lowercase too, so it doesnt exist, therefore making it nil (unless the part is actually lowercase)