When I hold jump and A or D and shoot the projectile, the projectile angles left when i hold A and angles a bit right when i hold D
In this picture, im using shift-lock and facing one direction and holding a or d and jumping and shooting. You can see that the projectiles are a bit angled.
But, ive found a fix for this. If you put wait(0.01) before spawning the projectile it fixes it completely.
Although i found a solution, i just want to know why does it do that and why does putting wait(0.01) fix it?
i discovered that humanoid.AutoRotate = true causes this,
My reasoning is because autorotate = true makes the player turn when moving any direction besides forward, and shiftlock restrictes turning away from the camera direction, so they both fight with each other.
Disabling autorotate fixes this issue, but i dont know why adding wait(0.01) before spawning projectiles also fixes it.
im sure many people have had this problem and nobody found a solution so here it is!
just set humanoid.autorotate to false