local function ClonePetFrame(Name, PetName)
local PetTemplate = script.PetTemplate:Clone()
PetTemplate.Name = Name -- error line
PetTemplate.PetName.Text = PetName
PetTemplate.Parent = Frames.PetsFrame.Main.ScrollingFrame
end
for i,v in pairs(Replica.Data.PetInventory) do
print(i, v)
ClonePetFrame(i, v.PetName) -- error line
end