to make it strafe, use the "newxvalue" and "newzvalue" commands, look them up
example in my code: (spd# is the speed at which it will move, ca# is the y angle of the camera, cx# and cz# are the positions (just place the camera at cx and cz after this code))
if keystate(keyforward)
cx#=newxvalue(cx#,ca#,spd#)
cz#=newzvalue(cz#,ca#,spd#)
endif
if keystate(keybackward)
cx#=newxvalue(cx#,wrapvalue(ca#-180),spd#)
cz#=newzvalue(cz#,wrapvalue(ca#-180),spd#)
endif
if keystate(keyleft)
cx#=newxvalue(cx#,wrapvalue(ca#-90),spd#)
cz#=newzvalue(cz#,wrapvalue(ca#-90),spd#)
endif
if keystate(keyright)
cx#=newxvalue(cx#,wrapvalue(ca#+90),spd#)
cz#=newzvalue(cz#,wrapvalue(ca#+90),spd#)
endif