So I have code like this;
CFrame = effectedCamera.CFrame + Vector3.new(0,0,-10)
Now that’s great and all but if I rotate the brick 90 degrees to face somewhere else it will now move sideways how can I make it always move forwards?
So I have code like this;
CFrame = effectedCamera.CFrame + Vector3.new(0,0,-10)
Now that’s great and all but if I rotate the brick 90 degrees to face somewhere else it will now move sideways how can I make it always move forwards?
part.CFrame = part.CFrame + part.CFrame.LookVector * 5 -- 5 is how far forward it will go forward. be sure to change this to your liking
when you say 5? Is that studs or and why not use + 5
?
If you use + 5
it will throw an error: invalid argument #2 (Vector3 expected, got number)
When I say 5, I mean in studs.