Spawn amount connected to slider

I had to do something very similar before: