A problem with position

Hello! I have making a menu for trades, and got a problem with position. I dont know how to describe this here, just look at script:

local plr = game.Players.LocalPlayer
local pets = plr.Pets
local counter = 0

wait(3)
local children = pets:GetChildren()
for i, child in ipairs(children) do
	print(child.Name .. " is child number " .. i)
	local c = script.Parent.TextButton:Clone()
	c.Parent = script.Parent
	c.Text = child.Name
	c.Position = UDim2.new({0.233, 0},{0.014, counter})
	counter = counter + 70
end
2 Likes

remove the curly brackets from the UDim2.new().

c.Position = UDim2.new(0.233, 0,0.014, counter)