Is there a way to make a rig be killed by a script inside of it somewhere?

I am trying to make a simple rig with humanoid die by a script inside of it due to organisation issues. (Ask me to explain if you need to)

I cannot find a way to do it without using a invisible part underneath it which means it is not inside the rigs model.

I could not find anything about this on the forum.

As a builder i do not script much so i only know the very basics.

Thank you,

               username14567891

Why don’t you just define the path for the humanoid and do whatever you need to (set its health to 0?, destroy the model?, etc).

E.g

local Humanoid = workspace.MyNPCExample.Humanoid -- path to the rigs humanoid

Humanoid.Health = 0 -- set it to 0, which kills it

Note it doesn’t matter where the script is. All you need to do is define the humanoid of it.

I appreciate the help. Thank you. :]