I want to make it so multiple tools, can open the doors, however, it isn’t working! I have tried using other things and it still is buggy.
Here’s the script, any help would be appreciated!
script.Parent.Parent.Touched:Connect(function(hit)
if hit.Parent.Name == "Keycard" or "R1" or "R2" then
for _,v in pairs(workspace.ScienceDoor:GetChildren()) do
if v:IsA("BasePart") then
v.Transparency = 1
v.CanCollide = false
script.Parent.BrickColor = BrickColor.Green()
end
end
wait(1)
for _,v in pairs(workspace.ScienceDoor:GetChildren()) do
if v:IsA("BasePart") then
v.Transparency = .85
v.CanCollide = true
script.Parent.BrickColor = BrickColor.White()
end end
end
end)