Why my script don't see npc?

Screenshot_185 it has

Does it print anything, or does it simply not run the function.

in video i showed that when i no longer touching part it prints what touched part last time but for npc its not, how can i make npc moveable so i can push npc?

Can you change this to
part.Touched:Connect(onPartTouchEnded)

Unanchor the NPC in the properties tab.

this function will check if part being touched? i want it to check if npc dissapeared so i can make my boolvalue true and make it place ready to spawn new npc

I noticed that if i will make a HumanoidRootPart’s anchor false it will change the value but even if npc still touching part. Why this is happening?