Using the second argument of Instance.new is not recommended and using .Parent is better. There was problems that the parent was getting changed before the other properties (or something like that) were changed which seems to be your issue. Set .Parent after the name and value.