Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Is there any sort of function to find the damaging player?

Asked by 6 years ago

There's 2 functions in the script I'm creating for my game.

One is LockOn() , it makes your player lock on to any person in the game.

Well say I wanted to only run LockOn() to the SPECIFC player that DAMAGES me

How would one do this? I already know how to run functions and stuff, but I have NO idea how to define one as the player that did the damage. Yes, there's "getnearesttorso" and stuff, but that doesnt help much when there's a lot of people around me in the game.

I've asked people, read so much of the wiki and google, and can't find one answer.. Any help would be greatly appreciated

0
I have a couple of questions: 1. Do you have a script for reference? If so, please edit it into your question. 2. Is your script a LocalScript or a Server script? ax_gold 360 — 6y

Answer this question