Hello! I made a scripting that make: When door touched by tool, door anchored = false. It works but when I have a tool in invetnory and I'm touching the door by body it also works. How can I fix that?
Script: local function onTouch(doorHouse)
game.Workspace.DoorHouse.Anchored = false
end game.Workspace.DoorHouse.Touched:Connect(onTouch)
You need a check to make sure it's a tool
if doorHouse:IsA("Tool") then end
Or if just a part of the tool hits the door.
if doorHouse.Parent:IsA("Tool") then end