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

How do I tag a player/character in general?

Asked by 6 years ago

I have a gun script that does not tag the player and therefore does not count kills

0
..What? Ashley_Phantom 372 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

Personally, my favourite way is to check if they died after dealing the damage.

Example:

human:TakeDamage(40)

local tag = human.Died:Connect(function()
--this will run if you inflicted the final hit
end)

wait(0.1)

tag:Disconnect()
0
what does "human" mean? EliteRayGawnX2 124 — 6y
0
human is the humanoid you're trying to damage Professor_Boxtrot 136 — 6y
0
How do I make it so it counts as a kill for the player EliteRayGawnX2 124 — 6y
Ad

Answer this question