THE SCRIPT:

``local replicatedStorage = game:GetService("ReplicatedStorage") local runService = game:GetService("RunService")

local player = game.Players.LocalPlayer

local Pets = replicatedStorage:WaitForChild("Pets") local Eggs = workspace:WaitForChild("Eggs") local Module3D = require(replicatedStorage:WaitForChild("Module3D"))

local MaxDisplayDistance = 23

wait(.5)

for i, v in pairs(Eggs:GetChildren()) do local eggsPets = Pets:FindFirstChild(v.Name)

if eggsPets ~= nil then
	local billboardTemp = script.Template:Clone()
	local container = billboardTemp:WaitForChild("Container")
	local MainFrame = container:WaitForChild("MainFrame")
	local template = MainFrame:WaitForChild("Template")
	local display = template:WaitForChild("Display")
	
	billboardTemp.Parent = script.Parent.Parent.EggBillboards
	billboardTemp.Name = v.Name
	billboardTemp.Adornee = v.Egg
	billboardTemp.Enabled = true
	
	local pets = {}
	
	for x, pet in pairs(eggsPets:GetChildren()) do
		table.insert(pets,pet.Rarity.Value)
	end
	
	table.sort(pets)
	
	for _, rarity in pairs(pets) do
		
	end
	
	for _, pet in pairs(eggsPets:GetChildren()) do
		local rarity = pet.Rarity.Value
		
		
		
		local clonedTemp = template:Clone()
		
		clonedTemp.Name = pet.Name
		clonedTemp.Rarity.Text = tostring(pet.Rarity.Value).."%"
		clonedTemp.Visible = true
		clonedTemp.Parent = MainFrame
		
		local petModel = Module3D:Attach3D(clonedTemp.Display,pet:Clone())
		petModel:SetDepthMultiplier(1.2)
		petModel.Camera.FieldOfView = 5
		petModel.Visible = true
		
		

		runService.RenderStepped:Connect(function()
			petModel:SetCFrame(CFrame.Angles(0,tick() % (math.pi * 2),0) * CFrame.Angles(math.rad(-10),0,0))
		end)
	end
	
	runService.RenderStepped:Connect(function()
		if player:DistanceFromCharacter(v.Egg.Base.Position)  < MaxDisplayDistance then
			for _, billboard in pairs(script.Parent.Parent.EggBillboards:GetChildren()) do
				if billboard.Name ~= v.Name then
					billboard.Enable = false
				else
					billboard.Enable = true
				end
			end
		else

--Line error-> billboardTemp.Enable = false(this is the line error) end end) end end``