This is not my script, i got it from dev forum https://devforum.roblox.com/t/how-to-check-if-enemy-npc-is-dead/1141643 , and it looks wrong, but i cant tell why, it doesnt work in game too. Can you supplement this script, tell me what to throw where, should it be a regular or local script?
Folder.ChildRemoved:Connect(function()
if #Folder:GetChildren() == 0 then
print("Hello world!")
end
end)

1 comment
Yeah, i suck in scripting BADLY, my maximum is a gate that can open when collected 3 keys, dont yell pls