How to spawn move_rope properly with Lua

I want to spawn ropes purely for decoration. (No physics)



local first = true
local all = {}
for k,v in pairs(points) do
	local rope = nil
	if first then
		rope = ents.Create("move_rope")
		first = false
	else
		rope = ents.Create("keyframe_rope")
	end
	print(v)
	rope:SetPos(v)
	rope:SetKeyValue("Slack","128")
	rope:SetKeyValue("RopeMaterial","cable/cable.vmt")
	rope:SetKeyValue("Subdiv","4")
	rope:SetKeyValue("Width","10")
	rope:SetKeyValue("targetname","lkpoint_"..lights)
	rope:SetName("lkpoint_"..lights)
	lights = lights + 1
	rope:SetKeyValue("NextKey","lkpoint_"..lights)
	table.insert(all,rope)
end

for i = #all,1,-1 do
	all*:Spawn()
end


Did i miss something or am i doing it completely wrong? Theres no errors.