# the reason why it isn't normally showing the error while scripting is because you forgot to put local so it turned into a global function