Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

When your making a script how would it tell the difference from a zombie nps and a player?

When your making a script what would you put for the script to detect if its a zombie npc and not a player?

1 comment

0

well i usually check for an UpperTorso, or a RightFoot, or something like that

1 answer

✓ Accepted answer

you would either check if there's a player instance with the same name as the NPC, or use the method, Players:GetPlayerFromCharacter(character) which will return a player object associated with the character passed to it, or nil if the character passed to it is not a player's character..

i recommend using the second method, because maybe in an extremely rare case there might a be player who is named the same thing as an NPC, therefore giving you wrong results.

1 comment

0

wdym

This discussion is preserved as it was. New answers, comments, and votes are closed.