While the script works perfectly, is there any way to make it so that a character without weapon does not automatically crash the game? I have tried methods such as adding unless statements where actor's weapon is nil, but that was to no avail and it gives me "cannot convert to integer" error or something.
Thank you.