function GT()for y,k in pairs(ScrollFrame:GetChildren())do if k:IsA("\070\114\097\109\101")then k:Destroy()end end for y,k in pairs(CarStorage:GetChildren())do local S=Template:Clone()S.Parent=ScrollFrame S.CarName.Text=k.Name S.BuySpawn.VehicleName.Value=k.Name S.ImageFrame.ImageLabel.Image=k.Image.Value end end GT()
--generate templates

function GT()
	---Clean
	for _, v in pairs(ScrollFrame:GetChildren()) do
		if v:IsA("Frame") then
			v:Destroy()
		end
	end
	---Generate
	for _, v in pairs(CarStorage:GetChildren()) do
		local Templatecopy = Template:Clone()
		Templatecopy.Parent = ScrollFrame
		Templatecopy.CarName.Text = v.Name
		Templatecopy.BuySpawn.VehicleName.Value = v.Name
		Templatecopy.ImageFrame.ImageLabel.Image = v.Image.Value
	end
end
GT()
