What I meant on my first post is that the OP is using a lua script from Leadwerks 2.
If you are looking for a simple animation test, use this script:
Script.speed=1.0--float
Script.sequence=0--int
function Script:UpdateWorld
local t = Time:GetCurrent()/100
self.entity:SetAnimationFrame(t * self.speed, 1, self.sequence)
end