What's the typ dup ?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Landro974

Hi firstly really thank you for your answer but i tried to use your method but it didn’t work unfortunately. Does in this example dup is a Var or func ?

:bust_in_silhouette: Reply From: jgodfrey

I’m not the original poster, but that’s just a variable. So…

var dup = ...
:bust_in_silhouette: Reply From: stephann

I forgot to add var. “dup” is just a random name.

var dup = self.duplicate()
self.get_parent().add_child(dup)