My monster doesn't care about my killpart

you simply need to place the script inside the starterplayerscripts instead inside the starterplayer itself

i’m very confused at your ways so i’ll explain a more simpler way to execute this without much unease towards complexity

you need to add a simple part, make it invisible after testing, you can color it red to make it distinctive, place it on the center top of the goomba like NPC, weld it make it not collide but with cantouch turned on, make sure it’s not anchored and has archivable if your that type of guy to turn archivable off

add a script to it, with the touch function but instead if it detects a hit.Parent.Humanoid touching it, it destroys it’s parent and then your done

you’d do something like put it in StarterCharacterScrips, then change the variable to the part to something like script.Parent:WaitForChild("KillPart")

I still don’t understand. Where can I put this variable in my script? I got error messages

currently, you’re using script.Parent to reference the part to touch because the script is in the part
instead, since the script would now be directly in the character, script.Parent will be the character, and you’d do script.Parent.KillPart to get the killpart in the character


Something like that?

no, the only the script.Parent at the top that references the killpart would change

Wait no, there’s an error :

replace it with hit.Parent:FindFirstChild("Humanoid") and remove the KillPart of the next lines

oh, is the killpart in the npc or player’s character? I think I mixed something up earlier

The killpart is in the npc because I can’t put it in the player.

inside the NPC after some changes

I’m probably silly but it doesn’t work yet : image

you can put it in the player’s character by placing it in StarterCharacterScripts

if you want to leave it in the npc, you should connect to .Touched of the humanoidrootpart to see if it has touched the killpart that a player is holding

are you trying to kill the npc or kill the player?
you’re mixing up a lot of references

I’m trying to kill the NPC. Not myself lol
I rename it WeakPoint for not being confused.
The Killpart is still in the player : image
Also I don’t get it how you want I put it in StarterCharacterScripts, how I"'m supposed to separate them?

in that case, you’d check if hit.Parent is a player’s character, not just has a humanoid because it may be killed by other npcs

then, instead of script.Parent:Destroy(), you’d reference the noc with script.Parent.Parent

brb in like 30 min

1 Like

you’re supposed to write if hit.Parent:FindFirstChild("Humanoid") then

1 Like

Me too I need to go in 5 minutes :

I’m not a real programmer. Just an animator oof
I tested it doesn’t work oof

script.Parent.Parent:Destroy()

1 Like

Fixed but it doesn’t work yet :