Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to Make a sliding Keycard door? [closed]

Asked by 4 years ago

I've been trying to do this for a while. And I need it so I configure the script so I can switch through "High Level Key Card Access" and "Low Level Key Card Access". Any suggestions would be appreciated.

Closed as Not Constructive by JesseSong

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

Try to do this, put a script on the door

script.Parent.Touched:Connect(function(Hit)
local CheckIfCard = Hit.Parent:GetDescendants()

for i,v in pairs(CheckIfCard) do
      if v:IsA("Tool") and v.Name == "CardName" then
         script.Parent.CanCollide = false -- Or any open door script
    end
end
end

Hope it works, sorry if i didnt understand well.

0
if it doesnt work, try changing line 5 to "if v.Parent:IsA("Tool") and v.Parent.Name = "CardName" then" yuni_Boy1234 320 — 4y
0
It Works!!! Thanks. joshsharpe07 -1 — 4y
Ad