I am trying to make a keycard but it never works because the .Touched of the handle never gets called. Here is the script:
Handle.Touched:Connect(function(Part : BasePart)
local Door = Part:FindFirstAncestorWhichIsA("Model")
if not Door then return end
if CollectionService:HasTag(Door, "Door") == false then return end
if Door then
TouchedEvent:FireServer(Door)
end
end)
I already added print statements at the start but nothing gets printed. I deleted the prints to make it easier to read the script.