Need Help With Video Extension

Peace Unto You! When I changed the code to self.video I get this error. So it’s still not working. I followed the steps, but why isn’t it still working.

edit: and when I edited the last part of the code from “video_end(self)” to “video_end(self, self.video)” it just crashed. When I made the “self.video” change only, the game didn’t crash but the video doesn’t get destroyed I get that error, and im not able to access the main menu per usual

ERROR:SCRIPT: mainmenu/videoplayer.script:53: bad argument #1 to ‘destroy’ (number expected, got nil)
stack traceback:
[C]:-1: in function destroy
mainmenu/videoplayer.script:53: in function <mainmenu/videoplayer.script:49>