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)
local Guy = script.Parent:FindFirstChild('Humanoid')
should be
local humanoid = Player:FindFirstChild('Humanoid') if not humanoid then return end humanoid.Health = 0