Hey everyone, I'm trying to do something.But I have some errors.I cant store a class with setElementData.
local objects = getElementData(scene,"objects")
table.insert(objects,object);
setElementData(scene,"objects",objects)
outputDebugString(tostring(objects[1]:PositionX(5))) -- it works
objects = getElementData(scene,"objects")
outputDebugString(tostring(objects[1]:PositionX(5))) -- but it doesnt work.
What is the problem ?
Element is correct. I know it because I'm using it in clientRender.