I've been working on my first magic script lately, and I've just noticed this "bug" or unwanted feature which is inaccuracy. This issue is so bad at the point the projectile can go over 100 studs away from the desired target.
This is the piece of code I've used that I am almost certain that contains the issue:
local bodyvel = Instance.new("BodyVelocity", Projectile)
bodyvel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
bodyvel.Velocity = Mouse.lookVector * 150 -- Mouse in here is abbreviated for Mouse.Hit.Cframe.
Here's a streamable link to a video where it's inaccuracy is shown. https://streamable.com/yiayq5
It really frustrated me. (It was supposed to land near the place with bent pillars.)

1 comment
Shouldn't it be 'UnitRay' of the mouse rather than 'lookVector'?