What the problem is is that when I have my arm it would not kill me but it would not let me go through which is good but still the part that I don't know what I did wrong but if I have a arm it wouldn't kill me.
local part = script.Parent
function onTouch(hit)
local Player = hit.Parent
if Player:FindFirstChild('Right Arm') == nil then
part.CanCollide = false
part.Transparency = 0.6
wait(2)
part.Transparency = 0
else
local Guy = script.Parent:FindFirstChild('Humanoid')
part.CanCollide = true
part.Transparency = 0
Guy.Health = 0
end
end
part.Touched:connect(onTouch)

1 comment
If you have any self-removing parts (ex bullets), you should add "if Player == nil then return end" right after line 4