That gif is hard to follow with the bouncing. It is just better to post with the code tags or Lua button.
Anyway, the error is simple: loc1 is presumably undefined, or if it is, your assignment of it is incorrect. Depending on what you want (can't see the rest of your code):
Code:
loc1 = 11
-- or
loc1 = loc1 + 11