So I have a lock-on system and I want to make it so if you are locked on and dash left or right you will dash in a circular motion around the locked-on player.
The image below shows what I’m trying to achieve:
Red - Locked on enemy Blue - Local Player White - Path of dash Gray - Final destination
If you are locked onto the target (facing it) wouldn’t this automatically spin your player towards the target while dashing left or right which would cause the movement you seek?
I ended up doing this for my tower defense game, by creating a dashed circle image, and then using that on a SurfaceGUI that I applied to the top of a part, and changed the Rotation property via a tween, and kept having it looped… to make it appear, I use raycasting from my mouse cursor to call the function to start it.
I think if you make the circle image white, you can just change the imagecolor property to those Red/Blue/White/Gray colors.
I wish I could provide more help, like a module for all of this. What I have now just sort of works for my own purposes, but it would be nice to have a clean solution for this in the future, if someone could create it for Roblox. Maybe I will, after I finish my project.