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
end
I’m not sure what I’m doing wrong, so can someone help me with this?