(Copied from a random post on the site because this is the correct spot…)
In the scene1.lua file you’re using getObjectByTag() to determine whether an object is available, but what you’re looking at is named as ID. An ID is usually something that’s unique while multiple objects can be tagged with the same thing.
I’d suggest getObjectByTag() and getObjectById() in order to differentiate between the two.
getObjectByID() would only return a single item (the first match of “id” it finds - should only be one unless coder is lazy and reusing the same ID among objects).
getObjectByTag() would return a table holding all matching “tag” items. If only one is found it’s the 1st element of that table.
Jay