How to shoot ray in straight line on mobile

You could try cloning the muzzle attachment(I Am Assuming It is An Attachment, If Not You Can Add One Where The Muzzle Is) And Move It Infront Of The Muzzle A Stud Or Two, Rename It To ‘Muzzle2’ And Then Replace The Line

direction = fromP.Unit * config.Range -- bassically what to put here to make it go in a straight line

With

direction = (handle.Muzzle2.WorldPosition - fromP).Unit * config.Range
1 Like