When you initially just wanted to do a simple small bugfix on a script you haven't touched for way too long and then end up increasing it's functions to more than three times as many as before, working for days and coding like a maniac, just ot then realize you still didn't fix that one thing you wanted to do in the first place x)
Finally! I've been puzzling over why it wasn't working for two days now. Turns out all of my calculations were correct, I just forgot to give some events hitboxes. Now my randomly generated maps check for collision errors, and move stuff around in real time if they finds any.