local zombie = script.Parent
local Humanoid = zombie:WaitForChild("Zombie")
while Humanoid.Health < 1 do --I tried Humanoid.Died too
wait(0.1)
game.Workspace.ZP1.CanCollide = true
break
end
The script above is supposed to change CanCollide on a part to true, so that another script can recognize that and award all players accordingly, but it doesnt change CanCollide on the part to true. It also doesn't display any errors. Help would be appreciated!

2 comments
What is ZP1? shouldnt you just use the "zombie" as your model? since you're also scanning the MODEL and not any parts of the zombie, there is no such thing as cancollide.
ZP1 is a part