Here's a couple of snippets for everybody to enjoy.

First, here's a function to return the vector in front of a vector. All you need to calculate this is the current position to get the front of, the angle to calculate, and the distance away from the current position. This function can be used on both server and client side (depending on what script you put it in).

`function GetVectorInFrontOfVector(vector,angle,distance)`

{

angle = angle * PI / 180;

local x = (vector.x + ((cos(angle + (PI/2)))*distance));

local y = (vector.y + ((sin(angle + (PI/2)))*distance));

return Vector(x,y,vector.z);

}

Below is the same type of function, but is used to get a vector behind a vector.

`function GetVectorBehindVector(vector,angle,distance)`

{

angle = angle * PI / 180;

local x = (vector.x + ((cos(-angle + (PI/2)))*distance));

local y = (vector.y + ((sin(-angle + (PI/2)))*distance));

return Vector(x,y,vector.z);

}