-- By Nicolasledu id = 0 -- [ Color random ] c = {0,1,2,3,4,5,6,7,8,9,'a','b','c','d','e','f'} function randomColor() return c[math.random(1,#c)]..c[math.random(1,#c)]..c[math.random(1,#c)]..c[math.random(1,#c)]..c[math.random(1,#c)]..c[math.random(1,#c)] end -- [/ Color random ] function eventLoop(a,b) for i = 0, math.random(10,20) do id = id + 1 tfm.exec.addPhysicObject(id, math.random(0,800),math.random(0,100),{type=12,width=10,height=10,color="0x"..randomColor(),dynamic=true}) if id >= 300 then id = 0 end end end