I think this line of code is making it loop indefinitly..."if x=20 then x=2"
Change your code to...
while driftcount#=0
for x = 2 to 20
yx#=object position y(x)
xx#=object position x(x)
zx#=object position z(x)
if x=20 then driftcount#=1
position object x,xx#,(yx#-1),zx#
if yx#<0 then position object x,rnd(1000),1000,rnd(1000)
next x
If x=20 then x=2
endwhile
The problem was it would never exit the for/next loop. Also, Put "Sync On" right above the main loop, and you might want to make the particles into cubes for performance issues... Well...I hope I helped...
[Edit]
This is my 200th post
...
Previously known as "Game_Creator".
The question is, why am I talking to myself? ...... And more importantly, why am I waiting for a reply?