How do you get the id of a cloned node? (SOLVED)

If you use “gui.clone(node)” you clone a node, but how do you get that node ID (gui.get_node(?)). I looked around on the forum but I can’t find a good awnser. The only thing that I found was this, but I don’t know what it does.

for i = 1,10 do 
	self.clones[i] = gui.clone(node)
	gui.clone(node)
end

Can someone please help me?

gui.clone method returns you a node and you no need to use gui.get_node()

4 Likes

Holy shit, thx

2 Likes