How to duplicate object attributes?

One advantage of creating object values is that I can easily duplicate this value for many other objects.
image
image

But there are no Udim2Value nor Vector2Value.
But they are in Attributes
So I create a new attribute for UDim2:
image

And it’s there for the current object:
image

Now, how can I copy/paste the same attribute to many other objects?

I believe through script you can create an instance of this attribute and set into all your objects, using roblox example:

local object = script.Parent
 
-- Create an attribute
object:SetAttribute("Position2", UDim2)