Im trying to make it so when you dodge you go directly to the right, but while i’m shift locked it goes diagonal.
The reason why i’m using camera is so you can also do stuff like this
local camangle = CFrame.new(Vector3.new(cam.CFrame.p.X,char.HumanoidRootPart.Position.Y,cam.CFrame.p.Z),char.HumanoidRootPart.Position) *CFrame.Angles(cam.CFrame.lookVector.Y, 0, 0)
bv1.MaxForce = Vector3.new(14000,14000,14000)
bv1.Parent = player.Character.HumanoidRootPart
bv1.Velocity = (camangle * bv1.Velocity = (camangle * CFrame.Angles(0,math.rad(-90),0)).lookVector *40
for i=1,10 do
wait(0.02)
local camangle = CFrame.new(Vector3.new(cam.CFrame.p.X,char.HumanoidRootPart.Position.Y,cam.CFrame.p.Z),char.HumanoidRootPart.Position) *CFrame.Angles(cam.CFrame.lookVector.Y, 0, 0)
bv1.Velocity = (camangle * CFrame.Angles(0,math.rad(-90),0)).lookVector *40
But I’m trying to make it so if you just look forward it’ll bright you just to the right instead of right and forward diagonal
Thanks