Hi, so basically I wanted to make a humanoid, and if you kill it, it obviously falls apart, but you can't collide with them. And after some time, those humanoids despawn. But if I kill them it gives me an error, and I can still collide with them, why?
local a = script.Parent.Head
local b = script.Parent.HumanoidRootPart
local c = script.Parent.LeftArm
local d = script.Parent.LeftLeg
local e = script.Parent.RightArm
local f = script.Parent.RightLeg
local g = script.Parent.Torso
while wait(0.05) do
if script.Parent.Humanoid.Health <= 0 then
a.CanCollide = false
b.CanCollide = false
c.CanCollide = false
d.CanCollide = false
e.CanCollide = false
f.CanCollide = false
g.CanCollide = false
wait(35)
script.Parent:Destroy()
end
end

2 comments
Quite a nice idea, but it still gives me an error, and doesn't work
what's the error?