In an instance, nil is returned for the x and y coordinates.
Since nil ~= 0 ...
Lua Code:
if x ~= 0 and y ~= 0 then --> true
CoordText:SetFormattedText('%.0f , %.0f', x * 100, y * 100) --> attempt to perform arithmetic on a nil value
else
CoordText:SetText('')
end