I'm trying to make a leading arrow for my tycoon that leads to tycoon door. (Head) Everything is working fine but I want to call function disableArrows() when player touches one of the doors. (Head) How to do that?

The script is in StarterPlayerScripts:

local Players = game:GetService("Players")
local Character = Players.LocalPlayer.CharacterAdded:wait()

local tycoonDoors = {
	game.Workspace.Tycoon.Tycoons["Fighting Bears"].Entrance["Touch to claim!"].Head,
	game.Workspace.Tycoon.Tycoons["Friendly Kangaroos"].Entrance["Touch to claim!"].Head,
}

local function createArrows()
	for i,v in pairs(tycoonDoors) do
		local beam = Instance.new("Beam")
		beam.Parent = v
		beam.Color = ColorSequence.new(Color3.fromRGB(0,0,0))

		local attachmentPlayer = Instance.new("Attachment")
		attachmentPlayer.Name = "TycoonArrow"
		attachmentPlayer.Parent = Character:WaitForChild("HumanoidRootPart")

		beam.Attachment0 = v.Attachment
		beam.Attachment1 = attachmentPlayer
	end
end

createArrows()

local function disableArrows()
	for i,v in pairs(tycoonDoors) do
		v.Beam.Enabled = false
	end
end

local function enableArrows()
	for i,v in pairs(tycoonDoors) do
		v.Beam.Enabled = true
	end	
end