Stumped need help

Sounds like collision is null, maybe you could add a if collision: to your lines, if you expect there isn’t always a collision to process.

You might have to show more of your code, make sure to paste multiple lines as a multi-line code block, with three ticks ``` or [code] and [/code] wrapped around it