That was fun, one quick thing, the exit button on web games just freezes everything so I just removed it. This Unity code works well.
thanks for the input! will def use this