Why does this crash me and studio https://pastebin.com/yWkxYe0D
I personally do not have much experience in scripting but I assume that in line 33, you are trying to perform a 'while true do' loop. Thus, a wait is needed and.
use "While isdown do" instead and add some wait in it