What I want it to do is that if a player has their right arm off they can go through the door and people that have their right arm can't go through the door. Help me see what I am doing wrong.
local part = script.Parent
function onTouch(hit)
local Player = hit.Parent
if Player['Right Arm'] == nil then
part.CanCollide = false
end
end
part.Touched:connect(onTouch)

4 comments
Gosh Dangit I'll never be a good scripter :( I cant even figure out that would work. Thanks though
You'll learn eventually :P
I just have a question when I use the script even when I have a right arm it still lets me go through.
Nvm I figured it out I needed a else