Error in function

I’m trying to make a function where it adds a new row to the main gui from an example, but I keep on getting the error "Players.zachariapopcorn.PlayerGui.Purchase GUI.Loader:7: attempt to index string with ‘Text’

This is my current script at the moment

local function addRow(name, description, id)
	local frame = script.Parent.Example
	local clone = frame:Clone()
	local pID = tonumber(id)
	local price = game:GetService("MarketplaceService"):GetProductInfo(id).PriceInRobux
	clone.Visible = true
	clone.Name.Text = name
	clone.Description.Text = description
	clone.Price.Text = price
	clone.ProductID.Value = id
	clone.Parent = script.Parent.Main.Purchases

I’m not sure what I’m doing wrong, so can someone help me with this?

Properties have precedence over children when indexing, so use a different name e.g. ProductName

I’m assuming that you’re talking about the parameter names, right? If so, I changed name to ProductName and description to ProductDescription, still didn’t work

No, I said properties, not parameters.

Change the name of the TextLabel to ProductName or something like that.