can u add wait(8.5) in there
can u debounce open door and close door coz they arent the same function, (the door either opens or closes not both)
local hit = false
local keycard = "Keycard"
script.Parent.Touched:Connect(function(hit)
local character = hit.Parent
local player = game.Players:GetPlayerFromCharacter(character)
if player then
local backpack = player.Backpack
if backpack:FindFirstChild(keycard) or character:FindFirstChild(keycard) then
print("opendoor")
else
print("closedoor")
end
end
end)

5 comments
no do it yourself. THIS IS NOT A REQUEST SITE
i tried
Chill
Please use codeblocks. It is easier to help you when you do.
codeblocks?