So I’m trying to make a projectile that goes wherever the user’s mouse is aiming, and to do so I need the projectile’s orientation to be aiming correctly, but whenever I run my script this isn’t the case.
The script and lines:
I think the bodyvelocity is moving the projectiles off the target so try changing: slide1.Velocity = mousehit.LookVector (do so for slide2 as well)
to: slide1.Velocity = proj1.LookVector
The easiest way to solve this is by using an AlignOrientation using TwoAttachment mode
You’ll need to create one for each projectile and an attachment on each projectile and an attachment parented to the part the mouse clicked for each projectile
Using AlignOrientation would allow the projectiles to rotate towards the target
Unfortunately it would take a very long time to make an example, so I recommend finding a tutorial that explains in detail how to use them