Subpart error resulting in kill

for some reason a mob dies when a subpart dies:
asdfghjkl is the subpart dying and ded is the mainpart
robloxapp-20220506-1607393.wmv (1.8 MB)

output(the numbers is the health) and there is nothing wrong with the tools:
16:07:29.200 defendcraft auto-recovery file was created - Studio
16:07:31.360 30000 (x189) - Server - health:12
16:07:39.336 SoundService::getSampleRate: system value = 000001818FE88018, enabled value = 1 - Studio
16:07:39.336 SoundService::getSampleRate: result = 48000 - Studio
16:07:39.591 Video recording started - Studio
16:07:39.592 30000 (x134) - Server - health:12
16:07:44.856 hit - Server - Script:76
16:07:44.869 29550 (x33) - Server - health:12
16:07:46.069 hit - Server - Script:76
16:07:46.087 asdfghjkl - Server
16:07:46.103 0 - Server - health:12
16:07:47.098 ded - Studio
16:07:50.967 Video recording stopped - Studio

image:
(i have expanded everything exept the health bars)

Please use something like CloudConvert and convert this video to a .mp4!

Also, what’s the name of the subpart? And have you tried setting any welds that are under it to have a nil Part0 and Part1 before calling Destroy on the subpart?

1 Like

Mutiple humanoids cause this, When one humanoid dies it thinks the character, was killed, thats why it does that, removing all the humanoids except one should work.

1 Like

what have welds got to do?? can u explain?

this is a multipart boss and i want seperate ones

After researching, multiple humanoids is fine but when part dies, its welds should be broken, if they are not the main humanoid will also break , setting part0 and part1 to nil should do the trick

1 Like

what is i just went script.Parent.WeldConstraint:Destroy() ?

Have you tried turning off “RequiresNeck” in the Humanoids’ properties.

requiresneck is already off and also ive already solved it