#Script just breaks

1 messages · Page 1 of 1 (latest)

wheat glacier
#

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"

proven narwhal
#

you should add some warns if it breaks somewhere because i dont really know where are the errors .-.

wheat glacier
hybrid rock
#

@wheat glacier

wheat glacier
#

hi

hybrid rock
#

i would honestly just make it so, when the script is being used (you know what i mean) it disables shift lock

#

am i correct?

#

is that what you're trying to do

wheat glacier
#

no shiftlock can still be used

hybrid rock
#

shiftlock locks your camera fully, ill try to figure it out

#

give me a minute

wheat glacier
#

its not even highlighting them, I think the problem is, is that i combined two different systems by accident, one where E locks on and one where Mouse is involved, but idk how to fix it

wheat glacier
candid cloudBOT
#

studio** You are now Level 3! **studio

hybrid rock
candid cloudBOT
#

studio** You are now Level 8! **studio

wheat glacier
#

oh sh really?

#

dude if you do, you are a legit legend

hybrid rock
#

?

#

i got pinged

wheat glacier
#

yeah i thought i could revert it but it doesnt work

#

one of the errors mentions an API issue

#

thats mb