I wanna know how to make a rushing system in which the player presses a key and rushes to the nearest enemy. This game here showcases what I want perfectly:
I really just can’t figure out how to find the nearest character from the player, and then getting the user character to rush in front of the target character. Any ideas?
You could use magnitude like I said in the post above you could use magnitude. Loop through the players and subtract the v’s (player) HumanoidRootPart’s position and the LocalPlayer’s position and get the magnitude from that.