Answered by
2 years ago Edited 2 years ago
Lua will not get confused by this. The variables, in this case, are pointing to the object; It will not matter if they are all given the same name.
When you print the object, it does print the name. However, you should be able to click on the name in the output, and it would open up the hierarchy for that object in the explorer.
It would be different if you were using the variable to search for an object. Let us say you had multiple parts in the workspace with the same name (e.g. "Part"); if you were to try and get an object named 'Part' from the workspace, it would only return the first one it finds.