--Disconnects the events if the tool is unparented.

local function DisconnectEvents()
	if not Tool.Parent then
		for _,Event in pairs(EventsToDisconnect) do
			Event:Disconnect()
		end
		EventsToDisconnect = {}
	end
end

