When the system picks a random word, the slots for the letters are made, however, they aren't centered.

local slots = {}

local function generateSlots(length) 
	for i = 1, length do
		local slot = script.Slot:Clone()
		slot.Name = "Slot"..i
		table.insert(slots, slot)
		slot.Parent = script.Parent
		for x = 1, #slots do
			slots[x].Position = UDim2.new(slots[x].Position.X.Scale + 0.05, 0, 0.68, 0)
		end
	end
end

What could I do to make the slots centered?

1 comment

1

Nevermind. Used UI layouts