--returns all of the instances of a specific instance in a model

function GetSpecificInstances(model,type)
	local tab={};
	for _,v in pairs(model:GetChildren()) do
		if v:IsA(type) then
			table.insert(tab,v);
		end
	end
	return tab;
end
