Ok so I was just trying to make an array and when the user finished and clicked finished it would delete the selected item from the OptionButton. But for some reason, it removes the element from both arrays.
var array1 = ["Number one", "Number 2"]
var array2 = array1
func _ready():
array2.remove(0)
But then It removes the element from array1 & array2
Thanks!