Tilting a lookVector upwards by 45 Degrees

How would I add 45 degrees upwards on a lookVector? I’m trying to make the angle of the shots in my game go upwards. Right now I’m trying but it only works on some orientations

CFrame.Angles(0,math.pi/4,0):VectorToWorldSpace(game.Workspace.Camera.CFrame.LookVector)

You can get the 45 degree angle of a look vector by subtracting the part’s position and the part’s position plus 1 stud on the X and Y axis because because adding the same amount of studs on the X and Y axis will make the position move up or down in a 45 degree angle depending if the numbers are negative or not.

--Below gets the 45 degree diagonal position
local diagonalDirection = (basePart.CFrame * CFrame.new(0,1,1)).p
--Below will get you the vector that points 45 degrees from the basePart
local vectorDirection = (diagonalDirection - basePart.Position).Unit
1 Like