So I made this lock on script, I had help from a friend but he is offline right now, all of a sudden it just breaks, heres a rundown on what the script is supposed to do
E = Lock on
X = Unlock
You are able to lock on if you are within 20 studs of any NPC
And 30 studs for any NPC with "Boss" in the name
Attempting to jump on the players head will unlock automatically, as well as going outside the stud range
It should highlight Red if you are in-range, and the NPC/Player should have a white highlight after locking on, here is the code and a video of what it should do
If the players or npcs Head transparency to 1, you should NOT be able to lock, once it is visible you can
It ignores any NPC with "Quest" in the name (Interactive at the time of the recording)
The script is a LocalScript inside StarterPlayerScripts, called "LockOn"
** You are now Level 3! **