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)

1 comment
You need an [if statement] in order to make sure only the tool is allowed to operate within the Touched event.