-- LUA Script - precede every function and global member with lowercase name of script + '_main' local rad = math.rad local deg = math.deg local square = 1 local timer = nil function slpiece_init(e) end function slpiece_main(e) if timer == nil then timer = g_Time + 5000 end if g_Time > timer then timer = g_Time + 3000 x,y,z,xa,ya,za = SLCalcPos(square) CollisionOff(e) SetPosition(e, x,y,z) SetRotation(e, xa,ya,za) ResetPosition(e, x,y,z) ResetRotation(e, xa,ya,za) CollisionOn(e) square = square + math.random(1,6) if square > 100 then timer = math.huge end end Prompt(square) end