TP = {}
function TP:new(pos, newpos, effect)
return setmetatable({pos = pos, newpos = newpos, effect = effect}, { __index = self })
end
function TP:setNewPos(position)
self.newpos = position
end
function TP:setEffect(efeito)
self.effect = efeito
end
var = TP:new({x = 160, y = 54, z = 7}, {x = 180, y = 60, z = 7}, 10)
print ("is")
for chave, valor in pairs(var.newpos) do
print (chave, valor)
end
VFAgPSB7fSAKZnVuY3Rpb24gVFA6bmV3KHBvcywgbmV3cG9zLCBlZmZlY3QpIAogICAgcmV0dXJuIHNldG1ldGF0YWJsZSh7cG9zID0gcG9zLCBuZXdwb3MgPSBuZXdwb3MsIGVmZmVjdCA9IGVmZmVjdH0sIHsgX19pbmRleCA9IHNlbGYgfSkgCmVuZCAKZnVuY3Rpb24gVFA6c2V0TmV3UG9zKHBvc2l0aW9uKQogICAgc2VsZi5uZXdwb3MgPSBwb3NpdGlvbiAKZW5kIApmdW5jdGlvbiBUUDpzZXRFZmZlY3QoZWZlaXRvKSAKICAgIHNlbGYuZWZmZWN0ID0gZWZlaXRvIAplbmQKIAp2YXIgPSBUUDpuZXcoe3ggPSAxNjAsIHkgPSA1NCwgeiA9IDd9LCB7eCA9IDE4MCwgeSA9IDYwLCB6ID0gN30sIDEwKSAKIApwcmludCAoImlzIikKZm9yIGNoYXZlLCB2YWxvciBpbiBwYWlycyh2YXIubmV3cG9zKSBkbwoJcHJpbnQgKGNoYXZlLCB2YWxvcikKZW5k