Keycard door doesn't work

I made a keycard door but when i touch the scanner whitout a keycard, it opens to
see the video
robloxapp-20210203-1127463.wmv (896.0 KB)
this is the script

script.Parent.Touched:Connect(function(hit)
	if hit.Parent.Name == "StaffKey" or "SecurityKey" or "DirectorKey" then
		opentween1:play()
		opentween2:play()
		wait(10)
		closetween1:play()
		closetween2:play()
		
			
		
	
	end
end)


can anybody help me

local name = hit.Parent.Name
if name == "StaffKey" or name == "SecurityKey" or name == "DirectorKey" then
1 Like

Thanks a lot, really thank you