Normally your code should be one for all … but platform specific errors can happen … just like @yosu said if you have an if statement inside your code to run certain stuff only if the platform is apple or amazon or windows or simulator then the error might be there
in your case you should put be able to easily trace the problem, by putting a textfield object that shows certain messages before and after where the error occurs … this sound like a dummy but it helps when you don’t really know where exactly the problem is happening specially if the problem happens suddenly inside an event or a timer not based on a tap or touch event
object.text=“1”
…
…
object.text=“2”
…
…
object.text=“15”
and so on
if it happens on clear tap or touch events you should be able to find it easily by looking at any math related function like adding, >,<,~= etc. … and you should easily find the problem
you cannot for example say
if tonumber(myVariable)>0 then
if myVariable was nil
it has to be this way:
if myVariable ~= nil then
if tonumber(myVariable)>0 then
end
end