When I use the code below (which uses integer instead of tonumber), I am logged out after a minute and the object's code and textures are reset. Expected behavior is to throw a type mismatch error or something.
function state_entry()
ll.Say(0, tostring(-1 - integer(string.sub(tostring(ll.GetKey()), -7, -1), 16)))
end
state_entry()