How do I delete 50 children in a folder?

How do I just delete a number of children in a folder?

local DeleteNumbers = 50

for i,v in pairs(Folder:GetChildren()) do
	v:Destroy()
	if i == DeleteNumbers then
		break
	end
end

Edit: My bad, accidentally did :Delete() which is obviously not a function, I meant :Destroy()

5 Likes