21.11.2019, 07:44
2 Bytes floating point is a number so it cannot raise an error. Can you post data types for all objects?
Try this function instead of tonumber (add it to script and replace tonumber with mbtonumber):
Try this function instead of tonumber (add it to script and replace tonumber with mbtonumber):
Code:
function mbtonumber(val)
if type(val) == 'boolean' then
return val and 1 or 0
else
return tonumber(val) or 0
end
end