Try:
sync on : sync rate 0
make object sphere 1,10
make matrix 1,1000,1000,32,32
do
control camera using arrowkeys 0,5,5
pick screen screen width()/2,screen height()/2,100
x#=get pick vector x()+camera position x()
y#=get pick vector y()+camera position y()
z#=get pick vector z()+camera position z()
position object 1,x#,y#,z#
sync
loop
or
sync on : sync rate 0
make object sphere 1,10
make matrix 1,1000,1000,32,32
do
control camera using arrowkeys 0,5,5
position object 1,camera position x(),camera position y(),camera position z()
rotate object 1,camera angle x(),camera angle y(),camera angle z()
move object 1,100
sync
loop
The programmer formerly known as sonic