I just used this script so that when you have your right arm off you go through the door but when I have my left arm and right arm off I still go through the door. Is there anyway to fix that?
This is the code.
local part = script.Parent
part.Touched:connect(function(hit)
if game.Players:GetPlayerFromCharacter(hit.Parent) then
local player = hit.Parent
if not player:FindFirstChild("Right Arm") then
part.CanCollide = false
part.Transparency = 0.6
wait(2)
part.Transparency = 0
else
local humanoid = player:FindFirstChild("Humanoid")
if humanoid then
humanoid:TakeDamage(humanoid.Health)
end
end
end
end)
