Yea not sure if it works smoothly bc I didn't test it very much, but it could be smth like this. Also changed the range of where the falling spikes spawn.
just fixing a bug